Commit 5e2cbf13 authored by Colin Ian King's avatar Colin Ian King Committed by Jon Mason
Browse files

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: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarJon Mason <jdmason@kudzu.us>
parent c16c6655
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);