Skip to contentSkip to conversation

staging: xgifb: Replace explicit NULL comparison

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

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

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

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

---
Changes in v2:
-sent using plain text mail agent

 drivers/staging/xgifb/XGI_main_26.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
  diff --git a/drivers/staging/xgifb/XGI_main_26.c
  b/drivers/staging/xgifb/XGI_main_26.c
  index d56ef14..23a3bd7 100644
  --- a/drivers/staging/xgifb/XGI_main_26.c
  +++ b/drivers/staging/xgifb/XGI_main_26.c
  @@ -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 21 lines · Namrata A Shettar

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

---
Changes in v2:
-sent using plain text mail agent

 drivers/staging/xgifb/XGI_main_26.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
  diff --git a/drivers/staging/xgifb/XGI_main_26.c
  b/drivers/staging/xgifb/XGI_main_26.c
  index d56ef14..23a3bd7 100644
  --- a/drivers/staging/xgifb/XGI_main_26.c
  +++ b/drivers/staging/xgifb/XGI_main_26.c
  @@ -2085,7 +2085,7 @@ static int __init xgifb_init(void)
   {
           char *option = NULL;
Quoted 5 lines
	   -       if (forcecrt2type != NULL)
	   +       if (forcecrt2type)
	                   XGIfb_search_crt2type(forcecrt2type);
			           if (fb_get_options("xgifb", &option))
				                   return -ENODEV;

This is really corrupted, I don't know how you did this, it's a new one to me...

Please fix up and resend.

thanks,

greg k-h

#2 lore raw
Quoted 28 lines · Greg Kroah-Hartman
Quoted 21 lines · Namrata A Shettar

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

---
Changes in v2:
-sent using plain text mail agent

 drivers/staging/xgifb/XGI_main_26.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
  diff --git a/drivers/staging/xgifb/XGI_main_26.c
  b/drivers/staging/xgifb/XGI_main_26.c
  index d56ef14..23a3bd7 100644
  --- a/drivers/staging/xgifb/XGI_main_26.c
  +++ b/drivers/staging/xgifb/XGI_main_26.c
  @@ -2085,7 +2085,7 @@ static int __init xgifb_init(void)
   {
           char *option = NULL;
Quoted 5 lines
	   -       if (forcecrt2type != NULL)
	   +       if (forcecrt2type)
	                   XGIfb_search_crt2type(forcecrt2type);
			           if (fb_get_options("xgifb", &option))
				                   return -ENODEV;
Quoted 8 lines

This is really corrupted, I don't know how you did this, it's a new one to me...

Please fix up and resend.

thanks,

greg k-h

Sorry for that :/ Will look that up and resend.

thanks,

namrata