Commit 25670ba3 authored by Namrata A Shettar's avatar Namrata A Shettar Committed by Greg Kroah-Hartman

staging: xgifb: Replace explicit NULL comparison

Replace explicit NULL comparison with equivalent expression to resolve
checkpatch issue.
- x != NULL => x
Signed-off-by: default avatarNamrata A Shettar <namrataashettar@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 58f0ff2a
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment