]> Git Repo - linux.git/commitdiff
NTB: ntb_transport: remove redundant assignment to rc
authorColin Ian King <[email protected]>
Sun, 18 Aug 2019 18:53:49 +0000 (19:53 +0100)
committerJon Mason <[email protected]>
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 <[email protected]>
Signed-off-by: Jon Mason <[email protected]>
drivers/ntb/ntb_transport.c

index 40c90ca10729675069c576a31f6a86a0f4e6b9ac..00a5d5764993c0339268ba98bf08a55bd4bc2ac1 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);
 
This page took 0.0545 seconds and 4 git commands to generate.