From d97a5912d37f3ed3ec22e5ea3d41a9537ae60ae6 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Mon, 18 Mar 2019 09:52:26 -0700 Subject: [PATCH] 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 --- ftm/core/src/wlan_ftm_svc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ftm/core/src/wlan_ftm_svc.c b/ftm/core/src/wlan_ftm_svc.c index 9d25b18005d0..fc8f0de8cc60 100644 --- a/ftm/core/src/wlan_ftm_svc.c +++ b/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; }