Re: [PATCH 5/5] Staging: rtl8192u: ieee80211: Use !x in place of NULL comparison

2019-05-13 Thread Dan Carpenter
On Tue, May 14, 2019 at 01:11:21AM +0530, Puranjay Mohan wrote: > @@ -2856,7 +2856,7 @@ static int ieee80211_wpa_set_encryption(struct > ieee80211_device *ieee, > goto done; > } > > - if (*crypt == NULL || (*crypt)->ops != ops) { > + if (!(*crypt) || (*crypt)->ops !=

[PATCH 5/5] Staging: rtl8192u: ieee80211: Use !x in place of NULL comparison

2019-05-13 Thread Puranjay Mohan
Fix comparison to NULL, chang to !x operation. Issue found using checkpatch.pl Signed-off-by: Puranjay Mohan --- drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git