OSDN Git Service

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 d56ef14..23a3bd7 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;