]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: wlan-ng: change comparison to NULL to preferred style.
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Mon, 7 Nov 2016 17:55:24 +0000 (18:55 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Nov 2016 12:25:33 +0000 (13:25 +0100)
Comparison to NULL could be written in preferred form.
Change it to comply with the standard kernel coding style.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wlan-ng/p80211wep.c

index 2e33fd7feddc0de047b70a02b2279333197fbce1..4de7479411922ab98419643072892f5ada5d3893 100644 (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;