ath11k: remove redundant dev_err call in ath11k_ahb_probe()
Subsystems (2)
PATCH 1/1 ath11k: remove redundant dev_err call in ath11k_ahb_probe()
There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message.
Signed-off-by Wei Yongjun <[email protected]>
--- drivers/net/wireless/ath/ath11k/ahb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/net/wireless/ath/ath11k/ahb.c +1 -3
@@ -897,10 +897,8 @@ static int ath11k_ahb_probe(struct platform_device *pdev) } mem =devm_ioremap_resource (&pdev->dev, mem_res); -if (IS_ERR (mem)) { -dev_err (&pdev->dev,"ioremap error\n" ); +if (IS_ERR (mem))return PTR_ERR (mem); - } ret =dma_set_mask_and_coherent (&pdev->dev,DMA_BIT_MASK (32 ));if (ret) {
Quoted 5 lines · Wei Yongjun
There is a error message within
devm_ioremap_resourcealready, so remove thedev_errcall to avoid redundant error message.Signed-off-by Wei Yongjun <[email protected]>
I don't see harm having two error messages and having an error message within ath11k makes it easier to find the exact location, so I'm dropping this.
Signature · 3 lines
https://patchwork.kernel.org/patch/11511845/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Quoted 5 lines · Wei Yongjun
There is a error message within
devm_ioremap_resourcealready, so remove thedev_errcall to avoid redundant error message.Signed-off-by Wei Yongjun <[email protected]>
I don't see harm having two error messages and having an error message within ath11k makes it easier to find the exact location, so I'm dropping this.
Signature · 8 lines
https://patchwork.kernel.org/patch/11511845/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches _______________________________________________ ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k