From: Namrata A Shettar Date: Sun, 18 Sep 2016 08:16:01 +0000 (+0530) Subject: staging: xgifb: Replace explicit NULL comparison X-Git-Tag: v4.9-rc1~119^2~512 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=25670ba3f3719e6121a2b1a3c216833d1a9e1d89;p=karo-tx-linux.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;