NTB: ntb_transport: remove redundant assignment to rc
authorColin Ian King <colin.king@canonical.com>
Sun, 18 Aug 2019 18:53:49 +0000 (19:53 +0100)
committerJon 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

index 40c90ca..00a5d57 100644 (file)
@@ -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);