projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b29376c
)
staging: sm750fb: Change 'x != NULL' to 'x'
author
Rehas Sachdeva
<aquannie@gmail.com>
Thu, 15 Sep 2016 21:32:42 +0000
(
03:02
+0530)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 16 Sep 2016 07:49:56 +0000
(09:49 +0200)
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>
drivers/staging/sm750fb/sm750.c
patch
|
blob
|
history
diff --git
a/drivers/staging/sm750fb/sm750.c
b/drivers/staging/sm750fb/sm750.c
index
6ed004e
..
7d90e25
100644
(file)
--- 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;