Skip to content

Commit

Permalink
Merge branch 'remotes/lorenzo/pci/versatile'
Browse files Browse the repository at this point in the history
- Drop unnecessary "retval" variable, since it's never read (Colin Ian
  King)

* remotes/lorenzo/pci/versatile:
  PCI: versatile: Remove redundant variable retval
  • Loading branch information
Bjorn Helgaas committed May 24, 2022
2 parents 647b52e + 6086987 commit efa3158
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/pci/controller/pci-versatile.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit efa3158

Please sign in to comment.