summaryrefslogtreecommitdiffstats
path: root/drivers/ntb/ntb_transport.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-08-18 20:53:49 +0200
committerJon Mason <jdmason@kudzu.us>2019-09-23 23:20:40 +0200
commit5e2cbf13d0ec4fe2b6aabbeb6fe44830e8788dd0 (patch)
tree1d7eb8df1c3399af75aee61cb79c97c9b3f90763 /drivers/ntb/ntb_transport.c
parentntb_hw_switchtec: make ntb_mw_set_trans() work when addr == 0 (diff)
downloadlinux-5e2cbf13d0ec4fe2b6aabbeb6fe44830e8788dd0.tar.xz
linux-5e2cbf13d0ec4fe2b6aabbeb6fe44830e8788dd0.zip
NTB: ntb_transport: remove redundant assignment to rc
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>
Diffstat (limited to 'drivers/ntb/ntb_transport.c')
-rw-r--r--drivers/ntb/ntb_transport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ntb/ntb_transport.c b/drivers/ntb/ntb_transport.c
index 40c90ca10729..00a5d5764993 100644
--- 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);