Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Colin Ian King and committed by
Jon Mason
5e2cbf13 c16c6655

+1 -1
+1 -1
drivers/ntb/ntb_transport.c
··· 292 292 static int ntb_transport_bus_probe(struct device *dev) 293 293 { 294 294 const struct ntb_transport_client *client; 295 - int rc = -EINVAL; 295 + int rc; 296 296 297 297 get_device(dev); 298 298