mirror of https://gitee.com/openkylin/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 <namrataashettar@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
58f0ff2a57
commit
25670ba3f3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue