staging: sm750fb: Change 'x != NULL' to 'x'
authorRehas Sachdeva <aquannie@gmail.com>
Thu, 15 Sep 2016 21:32:42 +0000 (03:02 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Sep 2016 07:49:56 +0000 (09:49 +0200)
Changes the explicit comparison to NULL from 'x != NULL' to 'x'. Issue detected
by checkpatch.

Signed-off-by: Rehas Sachdeva <aquannie@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sm750fb/sm750.c

index 6ed004e40855097b9d8a445454580cdd6a811719..7d90e250142c2bba706a6743e7926bf8751bbefb 100644 (file)
@@ -1176,7 +1176,7 @@ static int __init lynxfb_setup(char *options)
                else {
                        strcat(tmp, opt);
                        tmp += strlen(opt);
-                       if (options != NULL)
+                       if (options)
                                *tmp++ = ':';
                        else
                                *tmp++ = 0;