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 <namrataashettar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Namrata A Shettar 2016-09-18 13:46:01 +05:30 committed by Greg Kroah-Hartman
parent 58f0ff2a57
commit 25670ba3f3

View file

@ -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;