提交 6086987b 编写于 作者: C Colin Ian King 提交者: Lorenzo Pieralisi

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.comSigned-off-by: NColin Ian King <colin.i.king@gmail.com>
Signed-off-by: NLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
上级 31231092
...@@ -31,10 +31,9 @@ static u32 pci_slot_ignore; ...@@ -31,10 +31,9 @@ static u32 pci_slot_ignore;
static int __init versatile_pci_slot_ignore(char *str) static int __init versatile_pci_slot_ignore(char *str)
{ {
int retval;
int slot; int slot;
while ((retval = get_option(&str, &slot))) { while (get_option(&str, &slot)) {
if ((slot < 0) || (slot > 31)) if ((slot < 0) || (slot > 31))
pr_err("Illegal slot value: %d\n", slot); pr_err("Illegal slot value: %d\n", slot);
else else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册