mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 12:33:18 -04:00
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:
committed by
Greg Kroah-Hartman
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;
|
||||
|
||||
Reference in New Issue
Block a user