staging: xgifb: Replace explicit NULL comparison
PATCH v3 1/1 staging: xgifb: Replace explicit NULL comparison
Replace explicit NULL comparison with equivalent expression to resolve checkpatch issue.
- x != NULL => x
Signed-off-by Namrata A Shettar <[email protected]>
---
Changes in v3:
-fixed corrupted patch
Changes in v2:
-sent using plain text mail agent
drivers/staging/xgifb/XGI_main_26.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
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 ;
Signature · 1 line
2.7.4