projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e9253b
)
Staging: rtl8712: rtl8712_efuse: Use !x instead of x == NULL.
author
Sandhya Bankar
<
[email protected]
>
Tue, 20 Sep 2016 09:01:50 +0000
(14:31 +0530)
committer
Greg Kroah-Hartman
<
[email protected]
>
Tue, 20 Sep 2016 11:37:59 +0000
(13:37 +0200)
Use !x instead of x == NULL. This patch was found by checkpatch.
Signed-off-by: Sandhya Bankar <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/rtl8712/rtl8712_efuse.c
patch
|
blob
|
history
diff --git
a/drivers/staging/rtl8712/rtl8712_efuse.c
b/drivers/staging/rtl8712/rtl8712_efuse.c
index 76f60ba5ee9b2bf297f0dcffadccb753810dd11b..205298e236562b5e3cf9b7ea1e1dc501dfa4c950 100644
(file)
--- a/
drivers/staging/rtl8712/rtl8712_efuse.c
+++ b/
drivers/staging/rtl8712/rtl8712_efuse.c
@@
-248,7
+248,7
@@
u8 r8712_efuse_pg_packet_read(struct _adapter *padapter, u8 offset, u8 *data)
u8 tmpdata[PGPKT_DATA_SIZE];
u8 ret = true;
- if (
data == NULL
)
+ if (
!data
)
return false;
if (offset > 0x0f)
return false;