summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2022-04-18 16:44:16 +0200
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>2022-04-28 11:46:37 +0200
commit6086987bdeb5910778e6488b1cd6801701b4ef91 (patch)
treeea17e9cd280c6d0cf1fe8542bc3069429e28b659 /drivers
parentLinux 5.18-rc1 (diff)
downloadlinux-6086987bdeb5910778e6488b1cd6801701b4ef91.tar.xz
linux-6086987bdeb5910778e6488b1cd6801701b4ef91.zip
PCI: versatile: Remove redundant variable retval
Variable retval is being assigned a value that is never read, the variable is redundant and can be removed. Cleans up clang scan build warning: drivers/pci/controller/pci-versatile.c:37:10: warning: Although the value stored to 'retval' is used in the enclosing expression, the value is never actually read from 'retval' [deadcode.DeadStores] Link: https://lore.kernel.org/r/20220418144416.86121-1-colin.i.king@gmail.com Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Diffstat (limited to 'drivers')
-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