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:

committed by
Jon Mason

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)
|
static int ntb_transport_bus_probe(struct device *dev)
|
||||||
{
|
{
|
||||||
const struct ntb_transport_client *client;
|
const struct ntb_transport_client *client;
|
||||||
int rc = -EINVAL;
|
int rc;
|
||||||
|
|
||||||
get_device(dev);
|
get_device(dev);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user