]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
wifi: ath5k: Remove redundant dev_err()
authorRuan Jinjie <ruanjinjie@huawei.com>
Mon, 21 Aug 2023 07:57:09 +0000 (10:57 +0300)
committerKalle Valo <quic_kvalo@quicinc.com>
Tue, 22 Aug 2023 13:32:52 +0000 (16:32 +0300)
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
drivers/net/wireless/ath/ath5k/ahb.c

index 28a1e5eff204eb2e5b0022674847872fa40f1841..08bd5d3b00f104bd731423275eb17fad63e443ef 100644 (file)
@@ -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;
        }