staging: xgifb: Replace explicit NULL comparison
authorNamrata A Shettar <namrataashettar@gmail.com>
Sun, 18 Sep 2016 08:16:01 +0000 (13:46 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 18 Sep 2016 10:37:43 +0000 (12:37 +0200)
Replace explicit NULL comparison with equivalent expression to resolve
checkpatch issue.
- x != NULL => x

Signed-off-by: Namrata A Shettar <namrataashettar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/xgifb/XGI_main_26.c

index d56ef1425f6b350afdf7026a6f517a8d537523d4..23a3bd70268c11e16cb63f3fe1d31924c510922a 100644 (file)
@@ -2085,7 +2085,7 @@ static int __init xgifb_init(void)
 {
        char *option = NULL;
 
-       if (forcecrt2type != NULL)
+       if (forcecrt2type)
                XGIfb_search_crt2type(forcecrt2type);
        if (fb_get_options("xgifb", &option))
                return -ENODEV;