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:
a667dbc
)
Staging: rtl8712: rtl8712_xmit: Use !x instead of x == NULL
author
Sandhya Bankar
<
[email protected]
>
Tue, 20 Sep 2016 09:06:17 +0000
(14:36 +0530)
committer
Greg Kroah-Hartman
<
[email protected]
>
Tue, 20 Sep 2016 11:38:00 +0000
(13:38 +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_xmit.c
patch
|
blob
|
history
diff --git
a/drivers/staging/rtl8712/rtl8712_xmit.c
b/drivers/staging/rtl8712/rtl8712_xmit.c
index 4bbf76f27ad0b3ed280ee5e252db107f7ec40034..c4f03a602a2e31081d57356a18602b0568007f42 100644
(file)
--- a/
drivers/staging/rtl8712/rtl8712_xmit.c
+++ b/
drivers/staging/rtl8712/rtl8712_xmit.c
@@
-629,7
+629,7
@@
int r8712_xmitframe_complete(struct _adapter *padapter,
phwxmits = pxmitpriv->hwxmits;
hwentry = pxmitpriv->hwxmit_entry;
- if (
pxmitbuf == NULL
) {
+ if (
!pxmitbuf
) {
pxmitbuf = r8712_alloc_xmitbuf(pxmitpriv);
if (!pxmitbuf)
return false;