projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03299d0
)
mtd: rawnand: mtk: remove redundant dev_err call in mtk_ecc_probe()
author
Yu Kuai
<yukuai3@huawei.com>
Thu, 8 Apr 2021 11:15:12 +0000
(19:15 +0800)
committer
Miquel Raynal
<miquel.raynal@bootlin.com>
Mon, 10 May 2021 08:34:41 +0000
(10:34 +0200)
There is a error message within devm_ioremap_resource
already, so remove the dev_err call to avoid redundant
error message.
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link:
https://lore.kernel.org/linux-mtd/20210408111514.1011020-2-yukuai3@huawei.com
drivers/mtd/nand/raw/mtk_ecc.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/raw/mtk_ecc.c
b/drivers/mtd/nand/raw/mtk_ecc.c
index 75f1fa3d4d35ca249b97684a31b1fab5e9bf78c6..c437d97debb8a704ebed57f1696c37e86f3545ce 100644
(file)
--- a/
drivers/mtd/nand/raw/mtk_ecc.c
+++ b/
drivers/mtd/nand/raw/mtk_ecc.c
@@
-515,10
+515,8
@@
static int mtk_ecc_probe(struct platform_device *pdev)
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
ecc->regs = devm_ioremap_resource(dev, res);
- if (IS_ERR(ecc->regs)) {
- dev_err(dev, "failed to map regs: %ld\n", PTR_ERR(ecc->regs));
+ if (IS_ERR(ecc->regs))
return PTR_ERR(ecc->regs);
- }
ecc->clk = devm_clk_get(dev, NULL);
if (IS_ERR(ecc->clk)) {