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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user