From: Colin Ian King Date: Fri, 10 Sep 2021 16:14:17 +0000 (+0100) Subject: PCI: Remove redundant 'rc' initialization X-Git-Tag: v5.16-rc1~105^2~13^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ff5d3bb6e16d644eabb675ec1c6ef242239ca5f1;p=thirdparty%2Fkernel%2Flinux.git PCI: Remove redundant 'rc' initialization 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 Signed-off-by: Bjorn Helgaas Reviewed-by: Krzysztof WilczyƄski --- diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 7998b65e9ae50..d72c0281eb54a 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -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();