From 9e5e30d3a66748f5d1fe9e92cf4f5be214567cf0 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Mon, 18 Mar 2019 13:36:40 -0700 Subject: [PATCH] qcacld-3.0: os_if: 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 os_if replace any such comparisons with logical operations performed on the pointer itself. Change-Id: Ia316c656c5156960d254383a8de4bfc58522f877 CRs-Fixed: 2418386 --- os_if/nan/src/os_if_nan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/os_if/nan/src/os_if_nan.c b/os_if/nan/src/os_if_nan.c index 88edbcbc1b9d..c494162ac691 100644 --- a/os_if/nan/src/os_if_nan.c +++ b/os_if/nan/src/os_if_nan.c @@ -1736,7 +1736,7 @@ static void os_if_new_peer_ind_handler(struct wlan_objmgr_vdev *vdev, uint32_t active_peers = ucfg_nan_get_active_peers(vdev); struct nan_callbacks cb_obj; - if (NULL == peer_ind) { + if (!peer_ind) { cfg80211_err("Invalid new NDP peer params"); return; } @@ -1785,7 +1785,7 @@ static void os_if_peer_departed_ind_handler(struct wlan_objmgr_vdev *vdev, return; } - if (NULL == peer_ind) { + if (!peer_ind) { cfg80211_err("Invalid new NDP peer params"); return; }