summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRehas Sachdeva <aquannie@gmail.com>2016-09-15 21:32:42 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-09-16 07:49:56 (GMT)
commit71b4de84a0ef8b495da3d3ca884e3e601b05af1b (patch)
treea163a7dfb2c83aded9be5dd0222c20ccd68edeae
parentb29376c31aaade2e28a79722c680f7c60500af48 (diff)
downloadlinux-71b4de84a0ef8b495da3d3ca884e3e601b05af1b.tar.xz
staging: sm750fb: Change 'x != NULL' to 'x'
Changes the explicit comparison to NULL from 'x != NULL' to 'x'. Issue detected by checkpatch. Signed-off-by: Rehas Sachdeva <aquannie@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/sm750fb/sm750.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/sm750fb/sm750.c b/drivers/staging/sm750fb/sm750.c
index 6ed004e..7d90e25 100644
--- a/drivers/staging/sm750fb/sm750.c
+++ b/drivers/staging/sm750fb/sm750.c
@@ -1176,7 +1176,7 @@ static int __init lynxfb_setup(char *options)
else {
strcat(tmp, opt);
tmp += strlen(opt);
- if (options != NULL)
+ if (options)
*tmp++ = ':';
else
*tmp++ = 0;