Skip to contentSkip to conversation

staging: xgifb: Replace explicit NULL comparison

PATCH Superseded Namrata A Shettar 2 participants 3 messages Sep 15, 2016 – Sep 16, 2016 Staging

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: xgifb: Replace explicit NULL comparison

Replace explicit NULL comparison with equivalent expression to resolve checkpatch issue.
- x != NULL => x

---
 drivers/staging/xgifb/XGI_main_26.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0 -0

b/drivers/staging/xgifb/XGI_main_26.c
index d56ef14..23a3bd7 100644

drivers/staging/xgifb/XGI_main_26.c +1 -1
@@ -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;
#1 lore raw
Quoted 8 lines · Namrata A Shettar

Replace explicit NULL comparison� with equivalent expression to resolve checkpatch issue.
- x != NULL => x

---
�drivers/staging/xgifb/XGI_main_26.c | 2 +-
�1 file changed, 1 insertion(+), 1 deletion(-)

You sent this as an html email, and that will not work for patches, sorry.

thanks,

greg k-h

#2 lore raw

Yes,will keep that in mind and use some other mail-agent.Will resend all my patches.Thanks for being patient and sorry for the inconvenience caused.

-Namrata

Quoted 16 lines · Greg Kroah-Hartman
Quoted 8 lines · Namrata A Shettar

Replace explicit NULL comparison� with equivalent expression to resolve checkpatch issue.
- x != NULL => x

---
�drivers/staging/xgifb/XGI_main_26.c | 2 +-
�1 file changed, 1 insertion(+), 1 deletion(-)

You sent this as an html email, and that will not work for patches, sorry.

thanks,

greg k-h