PCI: Remove redundant 'rc' initialization
authorColin Ian King <colin.king@canonical.com>
Fri, 10 Sep 2021 16:14:17 +0000 (17:14 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 26 Oct 2021 21:35:19 +0000 (16:35 -0500)
The variable 'rc' is being initialized with a value that is never read.
Remove the redundant assignment.

Addresses-Coverity: ("Unused value")
Link: https://lore.kernel.org/r/20210910161417.91001-1-colin.king@canonical.com
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Krzysztof WilczyƄski <kw@linux.com>
drivers/pci/pci.c

index 7998b65e9ae50d3b21c510eb3b0daa123118f623..d72c0281eb54a244053a6e463be6b1fd8db95baf 100644 (file)
@@ -5288,7 +5288,7 @@ const struct attribute_group pci_dev_reset_method_attr_group = {
  */
 int __pci_reset_function_locked(struct pci_dev *dev)
 {
-       int i, m, rc = -ENOTTY;
+       int i, m, rc;
 
        might_sleep();