Quellcode durchsuchen

qcacmn: regulatory: Replace explicit comparison to NULL

Per the Linux Kernel coding style, as enforced by the kernel
checkpatch script, pointers should not be explicitly compared to
NULL. Therefore within umac regulatory replace any such comparisons
with logical operations performed on the pointer itself.

Change-Id: If2fdfbf7b4d96a8af7f5eaf390e73f96ceff3dcf
CRs-Fixed: 2420152
Jeff Johnson vor 6 Jahren
Ursprung
Commit
f1a8f5fbb3
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      umac/regulatory/dispatcher/src/wlan_reg_services_api.c

+ 2 - 2
umac/regulatory/dispatcher/src/wlan_reg_services_api.c

@@ -564,7 +564,7 @@ QDF_STATUS wlan_reg_get_chip_mode(struct wlan_objmgr_pdev *pdev,
 	pdev_priv_obj = wlan_objmgr_pdev_get_comp_private_obj(pdev,
 			WLAN_UMAC_COMP_REGULATORY);
 
-	if (NULL == pdev_priv_obj) {
+	if (!pdev_priv_obj) {
 		reg_err("reg pdev private obj is NULL");
 		return QDF_STATUS_E_FAULT;
 	}
@@ -590,7 +590,7 @@ QDF_STATUS wlan_reg_get_freq_range(struct wlan_objmgr_pdev *pdev,
 	pdev_priv_obj = wlan_objmgr_pdev_get_comp_private_obj(pdev,
 			WLAN_UMAC_COMP_REGULATORY);
 
-	if (NULL == pdev_priv_obj) {
+	if (!pdev_priv_obj) {
 		reg_err("reg pdev private obj is NULL");
 		return QDF_STATUS_E_FAULT;
 	}