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>
This commit is contained in:
Colin Ian King 2019-08-18 19:53:49 +01:00 committed by Jon Mason
parent c16c665560
commit 5e2cbf13d0
1 changed files with 1 additions and 1 deletions

View 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);