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
This commit is contained in:
Jeff Johnson 2019-03-18 13:36:40 -07:00 • committed by nshrivas
commit 9e5e30d3a6

View file

@ -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;
}