summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2021-09-10 18:14:17 +0200
committerBjorn Helgaas <bhelgaas@google.com>2021-10-26 23:35:19 +0200
commitff5d3bb6e16d644eabb675ec1c6ef242239ca5f1 (patch)
tree75b8a5b176b2729d6f19743619a609f9050b9ead
parentPCI: Remove unused pci_pool wrappers (diff)
downloadlinux-ff5d3bb6e16d644eabb675ec1c6ef242239ca5f1.tar.xz
linux-ff5d3bb6e16d644eabb675ec1c6ef242239ca5f1.zip
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 <colin.king@canonical.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Krzysztof WilczyƄski <kw@linux.com>
-rw-r--r--drivers/pci/pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index 7998b65e9ae5..d72c0281eb54 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();