Staging: xgifb: Fix NULL pointer comparison warning

Replace direct comparisons to NULL i.e.
'x == NULL' with '!x'.
This problem was detected by checkpatch.

Signed-off-by: Maninder Singh <maninder.s2@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Maninder Singh 2016-10-20 18:17:03 +05:30 committed by Greg Kroah-Hartman
parent 31b15fe626
commit 6d408e0b94

View File

@ -518,7 +518,7 @@ static void XGIfb_search_crt2type(const char *name)
{
int i = 0;
if (name == NULL)
if (!name)
return;
while (XGI_crt2type[i].type_no != -1) {
@ -589,7 +589,7 @@ static void XGIfb_search_tvstd(const char *name)
{
int i = 0;
if (name == NULL)
if (!name)
return;
while (XGI_tvtype[i].type_no != -1) {