Skip to content

Commit 89f5f8f

Browse files
tititiou36suryasaimadhu
authored andcommitted
EDAC/thunderx: Remove irrelevant variable from error messages
'ret' is irrelevant (it is 0) for both dev_err() calls, so just remove it from the error message. [ bp: Massage commit message. ] Fixes: 4100339 ("EDAC, thunderx: Add Cavium ThunderX EDAC driver") Signed-off-by: Christophe JAILLET <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Link: https://lkml.kernel.org/r/0c046ef5cfb367a3f707ef4270e21a2bcbf44952.1620280098.git.christophe.jaillet@wanadoo.fr
1 parent 6efb943 commit 89f5f8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/edac/thunderx_edac.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1368,7 +1368,7 @@ static int thunderx_ocx_probe(struct pci_dev *pdev,
13681368
name, 1, "CCPI", 1,
13691369
0, NULL, 0, idx);
13701370
if (!edac_dev) {
1371-
dev_err(&pdev->dev, "Cannot allocate EDAC device: %d\n", ret);
1371+
dev_err(&pdev->dev, "Cannot allocate EDAC device\n");
13721372
return -ENOMEM;
13731373
}
13741374
ocx = edac_dev->pvt_info;
@@ -1380,7 +1380,7 @@ static int thunderx_ocx_probe(struct pci_dev *pdev,
13801380

13811381
ocx->regs = pcim_iomap_table(pdev)[0];
13821382
if (!ocx->regs) {
1383-
dev_err(&pdev->dev, "Cannot map PCI resources: %d\n", ret);
1383+
dev_err(&pdev->dev, "Cannot map PCI resources\n");
13841384
ret = -ENODEV;
13851385
goto err_free;
13861386
}

0 commit comments

Comments
 (0)