ソースを参照

qcacmn: ftm: 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 ftm replace any such comparisons with logical
operations performed on the pointer itself.

Change-Id: I0b089f46e99ab72a9ae494267a32e8b342a08ae3
CRs-Fixed: 2418259
Jeff Johnson 6 年 前
コミット
d97a5912d3
1 ファイル変更1 行追加1 行削除
  1. 1 1
      ftm/core/src/wlan_ftm_svc.c

+ 1 - 1
ftm/core/src/wlan_ftm_svc.c

@@ -100,7 +100,7 @@ wlan_ftm_pdev_obj_destroy_notification(struct wlan_objmgr_pdev *pdev,
 	struct wifi_ftm_pdev_priv_obj *ftm_pdev_obj =
 		wlan_objmgr_pdev_get_comp_private_obj(pdev, WLAN_UMAC_COMP_FTM);
 
-	if (NULL == ftm_pdev_obj) {
+	if (!ftm_pdev_obj) {
 		ftm_err("invalid wifi ftm obj");
 		return QDF_STATUS_E_FAULT;
 	}