projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6efb943
)
EDAC/thunderx: Remove irrelevant variable from error messages
author
Christophe JAILLET
<christophe.jaillet@wanadoo.fr>
Thu, 6 May 2021 05:49:34 +0000
(07:49 +0200)
committer
Borislav Petkov
<bp@suse.de>
Mon, 10 May 2021 08:24:43 +0000
(10:24 +0200)
'ret' is irrelevant (it is 0) for both dev_err() calls, so just remove
it from the error message.
[ bp: Massage commit message. ]
Fixes: 41003396f932 ("EDAC, thunderx: Add Cavium ThunderX EDAC driver")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link:
https://lkml.kernel.org/r/0c046ef5cfb367a3f707ef4270e21a2bcbf44952.1620280098.git.christophe.jaillet@wanadoo.fr
drivers/edac/thunderx_edac.c
patch
|
blob
|
history
diff --git
a/drivers/edac/thunderx_edac.c
b/drivers/edac/thunderx_edac.c
index 0eb5eb97fd74279adcca756c72cc62f4ed7ee6ef..f13674081cb6b2fc6761f36957e7b8ac0c50906b 100644
(file)
--- a/
drivers/edac/thunderx_edac.c
+++ b/
drivers/edac/thunderx_edac.c
@@
-1368,7
+1368,7
@@
static int thunderx_ocx_probe(struct pci_dev *pdev,
name, 1, "CCPI", 1,
0, NULL, 0, idx);
if (!edac_dev) {
- dev_err(&pdev->dev, "Cannot allocate EDAC device
: %d\n", ret
);
+ dev_err(&pdev->dev, "Cannot allocate EDAC device
\n"
);
return -ENOMEM;
}
ocx = edac_dev->pvt_info;
@@
-1380,7
+1380,7
@@
static int thunderx_ocx_probe(struct pci_dev *pdev,
ocx->regs = pcim_iomap_table(pdev)[0];
if (!ocx->regs) {
- dev_err(&pdev->dev, "Cannot map PCI resources
: %d\n", ret
);
+ dev_err(&pdev->dev, "Cannot map PCI resources
\n"
);
ret = -ENODEV;
goto err_free;
}