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:
c16c665
)
NTB: ntb_transport: remove redundant assignment to rc
author
Colin Ian King
<colin.king@canonical.com>
Sun, 18 Aug 2019 18:53:49 +0000
(19:53 +0100)
committer
Jon Mason
<jdmason@kudzu.us>
Mon, 23 Sep 2019 21:20:40 +0000
(17:20 -0400)
Variable rc is initialized to a value that is never read and it
is re-assigned later. The initialization is redundant and can be
removed.
Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
drivers/ntb/ntb_transport.c
patch
|
blob
|
history
diff --git
a/drivers/ntb/ntb_transport.c
b/drivers/ntb/ntb_transport.c
index
40c90ca
..
00a5d57
100644
(file)
--- a/
drivers/ntb/ntb_transport.c
+++ b/
drivers/ntb/ntb_transport.c
@@
-292,7
+292,7
@@
static int ntb_transport_bus_match(struct device *dev,
static int ntb_transport_bus_probe(struct device *dev)
{
const struct ntb_transport_client *client;
- int rc
= -EINVAL
;
+ int rc;
get_device(dev);