* [PATCH] bus: da8xx-mstpri: remove redundant dev_err()
@ 2026-07-23 7:22 Ashmit Kumar
0 siblings, 0 replies; only message in thread
From: Ashmit Kumar @ 2026-07-23 7:22 UTC (permalink / raw)
To: bgolaszewski; +Cc: kuba, alexander.deucher, linux-kernel, Ashmit Kumar
The devm_ioremap_resource() function already prints a detailed error message if it fails to map the resource. Thus, calling dev_err() immediately after it fails is redundant.
Remove the duplicate dev_err() call and its surrounding curly braces to conform to kernel coding style.
Signed-off-by: Ashmit Kumar <work.ashmitkumar@gmail.com>
---
drivers/bus/da8xx-mstpri.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/bus/da8xx-mstpri.c b/drivers/bus/da8xx-mstpri.c
index ee4c0233513..96c117922db 100644
--- a/drivers/bus/da8xx-mstpri.c
+++ b/drivers/bus/da8xx-mstpri.c
@@ -215,10 +215,8 @@ static int da8xx_mstpri_probe(struct platform_device *pdev)
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
mstpri = devm_ioremap_resource(dev, res);
- if (IS_ERR(mstpri)) {
- dev_err(dev, "unable to map MSTPRI registers\n");
+ if (IS_ERR(mstpri))
return PTR_ERR(mstpri);
- }
prio_list = da8xx_mstpri_get_board_prio();
if (!prio_list) {
--
2.43.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-23 7:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-23 7:22 [PATCH] bus: da8xx-mstpri: remove redundant dev_err() Ashmit Kumar
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.