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:
parent
c16c665560
commit
5e2cbf13d0
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue