staging: wlan-ng: change comparison to NULL to preferred style.

Comparison to NULL could be written in preferred form.
Change it to comply with the standard kernel coding style.

Signed-off-by: Sergio Paracuellos <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
Sergio Paracuellos 2016-11-07 18:55:24 +01:00 • committed by Greg Kroah-Hartman
commit d7a711b06e

View file

@ -125,7 +125,7 @@ int wep_change_key(struct wlandevice *wlandev, int keynum, u8 *key, int keylen)
return -1;
if (keylen >= MAX_KEYLEN)
return -1;
if (key == NULL)
if (!key)
return -1;
if (keynum < 0)
return -1;