projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b525cb
)
staging: wfx: replace 0 by NULL
author
Jules Irenge
<jbi.octave@gmail.com>
Tue, 5 Nov 2019 01:03:51 +0000
(
01:03
+0000)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Tue, 5 Nov 2019 16:50:21 +0000
(17:50 +0100)
Replace 0 by NULL as the return value of a pointer-returning function.
Issue detected by sparse tool.
Signed-off-by: Jules Irenge <jbi.octave@gmail.com>
Link:
https://lore.kernel.org/r/20191105010352.222479-2-jbi.octave@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wfx/queue.c
patch
|
blob
|
history
diff --git
a/drivers/staging/wfx/queue.c
b/drivers/staging/wfx/queue.c
index ef3ee55cf621ba16d312999f2bc45407e6031caf..5d29bce65f7179376406167b2e45e7eff9a3ca95 100644
(file)
--- a/
drivers/staging/wfx/queue.c
+++ b/
drivers/staging/wfx/queue.c
@@
-565,7
+565,7
@@
struct hif_msg *wfx_tx_queues_get(struct wfx_dev *wdev)
}
if (ret)
- return
0
;
+ return
NULL
;
queue_num = queue - wdev->tx_queue;