summaryrefslogtreecommitdiff
path: root/drivers/staging/xgifb
diff options
context:
space:
mode:
authorManinder Singh <maninder.s2@samsung.com>2016-10-20 18:17:03 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-10-25 10:56:16 +0200
commit6d408e0b94061d7d38b66175cb4698bbe2423815 (patch)
tree88dbd9c8624322c7bce0d4ffe098c7ac9a987503 /drivers/staging/xgifb
parent31b15fe6262a62a116c2347419ad39c56b25b3d7 (diff)
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>
Diffstat (limited to 'drivers/staging/xgifb')
-rw-r--r--drivers/staging/xgifb/XGI_main_26.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/xgifb/XGI_main_26.c b/drivers/staging/xgifb/XGI_main_26.c
index 0c78491ff5a1..89bd4dd6e8a5 100644
--- a/drivers/staging/xgifb/XGI_main_26.c
+++ b/drivers/staging/xgifb/XGI_main_26.c
@@ -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) {