Explorar el Código

staging: r8723au: replace NULL and zero comparison tests with ! operator

Replace explicit NULL comparison and zero comparison test with ! operator
to simplify code.

Signed-off-by: Alison Schofield <amsfield22@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Alison Schofield hace 10 años
padre
commit
2f31c4b418
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      drivers/staging/rtl8723au/core/rtw_ap.c

+ 2 - 2
drivers/staging/rtl8723au/core/rtw_ap.c

@@ -919,8 +919,8 @@ int rtw_check_beacon_data23a(struct rtw_adapter *padapter,
 			break;
 		}
 
-		if ((p == NULL) || (ie_len == 0))
-				break;
+		if (!p || !ie_len)
+			break;
 	}
 
 	/* wmm */