Skip to content

Commit 65d9aa3

Browse files
Ruan JinjieJassiBrar
authored andcommitted
mailbox: platform-mhu: Remove redundant dev_err()
There is no need to call the dev_err() function directly to print a custom message when handling an error from platform_get_irq() function as it is going to display an appropriate error message in case of a failure. Signed-off-by: Ruan Jinjie <[email protected]> Signed-off-by: Jassi Brar <[email protected]>
1 parent ad495a5 commit 65d9aa3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/mailbox/platform_mhu.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,8 @@ static int platform_mhu_probe(struct platform_device *pdev)
135135
for (i = 0; i < MHU_CHANS; i++) {
136136
mhu->chan[i].con_priv = &mhu->mlink[i];
137137
mhu->mlink[i].irq = platform_get_irq(pdev, i);
138-
if (mhu->mlink[i].irq < 0) {
139-
dev_err(dev, "failed to get irq%d\n", i);
138+
if (mhu->mlink[i].irq < 0)
140139
return mhu->mlink[i].irq;
141-
}
142140
mhu->mlink[i].rx_reg = mhu->base + platform_mhu_reg[i];
143141
mhu->mlink[i].tx_reg = mhu->mlink[i].rx_reg + TX_REG_OFFSET;
144142
}

0 commit comments

Comments
 (0)