]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Staging: fbtft: Use !x instead of x == NULL.
authorSandhya Bankar <bankarsandhya512@gmail.com>
Sat, 17 Sep 2016 23:11:39 +0000 (04:41 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 18 Sep 2016 10:38:27 +0000 (12:38 +0200)
Use !x instead of x == NULL. This patch was found by checkpatch.

Signed-off-by: Sandhya Bankar <bankarsandhya512@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fbtft/fbtft_device.c

index 924abd3ac0d65a894562335e4adbdfe889c76248..e9f25ddebff03cef869b7d3780fe734ddc87ed4b 100644 (file)
@@ -1401,7 +1401,7 @@ static int __init fbtft_device_init(void)
        long val;
        int ret = 0;
 
-       if (name == NULL) {
+       if (!name) {
 #ifdef MODULE
                pr_err("missing module parameter: 'name'\n");
                return -EINVAL;