From: Namrata A Shettar Date: Sun, 18 Sep 2016 08:16:01 +0000 (+0530) Subject: staging: xgifb: Replace explicit NULL comparison X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=25670ba3f3719e6121a2b1a3c216833d1a9e1d89;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/xgifb/XGI_main_26.c b/drivers/staging/xgifb/XGI_main_26.c index d56ef1425f6b..23a3bd70268c 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;