summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRuan Jinjie <ruanjinjie@huawei.com>2023-08-21 09:57:09 +0200
committerKalle Valo <quic_kvalo@quicinc.com>2023-08-22 15:32:52 +0200
commitf708ed71775d2216d829fe6e00f1b4c6b38bc03c (patch)
treea5a6d768d3bd05b071f40ff8e6442d09971a57ac
parentpds_core: Fix some kernel-doc comments (diff)
downloadlinux-f708ed71775d2216d829fe6e00f1b4c6b38bc03c.tar.xz
linux-f708ed71775d2216d829fe6e00f1b4c6b38bc03c.zip
wifi: ath5k: 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 <ruanjinjie@huawei.com> Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com> Link: https://lore.kernel.org/r/20230726171235.2475625-1-ruanjinjie@huawei.com
-rw-r--r--drivers/net/wireless/ath/ath5k/ahb.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath5k/ahb.c b/drivers/net/wireless/ath/ath5k/ahb.c
index 28a1e5eff204..08bd5d3b00f1 100644
--- a/drivers/net/wireless/ath/ath5k/ahb.c
+++ b/drivers/net/wireless/ath/ath5k/ahb.c
@@ -115,7 +115,6 @@ static int ath_ahb_probe(struct platform_device *pdev)
irq = platform_get_irq(pdev, 0);
if (irq < 0) {
- dev_err(&pdev->dev, "no IRQ resource found: %d\n", irq);
ret = irq;
goto err_iounmap;
}