mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 06:03:36 -04:00
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:
parent
78cbadef7b
commit
9e5e30d3a6
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue