Skip to contentSkip to conversation

staging: xgifb: Replace explicit NULL comparison

PATCH New Namrata A Shettar 1 participant 1 message Sep 18, 2016 Staging

lore
Share & tools
lore
#0 lore raw

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

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

---
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
index d56ef14..23a3bd7 100644
@@ -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