summaryrefslogtreecommitdiffstats
path: root/drivers/pci/controller
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2022-05-24 16:42:27 -0500
committerBjorn Helgaas <bhelgaas@google.com>2022-05-24 16:42:27 -0500
commitefa315818337ce00d7452546e4966e2692acd9d9 (patch)
treee4362e5e30661d16dd011e421873b4a744f391ab /drivers/pci/controller
parent647b52ecabb47ad72741861b604a18e38f156d0a (diff)
parent6086987bdeb5910778e6488b1cd6801701b4ef91 (diff)
downloadlinux-efa315818337ce00d7452546e4966e2692acd9d9.tar.bz2
Merge branch 'remotes/lorenzo/pci/versatile'
- Drop unnecessary "retval" variable, since it's never read (Colin Ian King) * remotes/lorenzo/pci/versatile: PCI: versatile: Remove redundant variable retval
Diffstat (limited to 'drivers/pci/controller')
-rw-r--r--drivers/pci/controller/pci-versatile.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pci/controller/pci-versatile.c b/drivers/pci/controller/pci-versatile.c
index 653d5d0ecf81..7991d334e0f1 100644
--- a/drivers/pci/controller/pci-versatile.c
+++ b/drivers/pci/controller/pci-versatile.c
@@ -31,10 +31,9 @@ static u32 pci_slot_ignore;
static int __init versatile_pci_slot_ignore(char *str)
{
- int retval;
int slot;
- while ((retval = get_option(&str, &slot))) {
+ while (get_option(&str, &slot)) {
if ((slot < 0) || (slot > 31))
pr_err("Illegal slot value: %d\n", slot);
else