Skip to content

Commit a683246

Browse files
ATRiiXJassiBrar
authored andcommitted
mailbox: arm_mhu_db: Remove redundant dev_err call in mhu_db_probe()
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 <[email protected]> Signed-off-by: Qiheng Lin <[email protected]> Signed-off-by: Jassi Brar <[email protected]>
1 parent 6457f4c commit a683246

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/mailbox/arm_mhu_db.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,10 +278,8 @@ static int mhu_db_probe(struct amba_device *adev, const struct amba_id *id)
278278
return -ENOMEM;
279279

280280
mhu->base = devm_ioremap_resource(dev, &adev->res);
281-
if (IS_ERR(mhu->base)) {
282-
dev_err(dev, "ioremap failed\n");
281+
if (IS_ERR(mhu->base))
283282
return PTR_ERR(mhu->base);
284-
}
285283

286284
chans = devm_kcalloc(dev, max_chans, sizeof(*chans), GFP_KERNEL);
287285
if (!chans)

0 commit comments

Comments
 (0)