From: Mohammed Shafi Shajakhan Date: Wed, 9 Nov 2016 01:40:59 +0000 (+0200) Subject: ath10k: remove extraneous error message in tx alloc X-Git-Tag: v4.10-rc1~202^2~118^2~52^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f004e532a80a6368627e26503482508528e5c443;p=platform%2Fkernel%2Flinux-exynos.git ath10k: remove extraneous error message in tx alloc Remove extraneous error message in 'ath10k_htt_tx_alloc_cont_frag_desc' as the caller 'ath10k_htt_tx_alloc' already dumps a proper error message Signed-off-by: Mohammed Shafi Shajakhan Signed-off-by: Kalle Valo --- diff --git a/drivers/net/wireless/ath/ath10k/htt_tx.c b/drivers/net/wireless/ath/ath10k/htt_tx.c index ab2ee90..ccbc8c03 100644 --- a/drivers/net/wireless/ath/ath10k/htt_tx.c +++ b/drivers/net/wireless/ath/ath10k/htt_tx.c @@ -282,10 +282,8 @@ static int ath10k_htt_tx_alloc_cont_frag_desc(struct ath10k_htt *htt) htt->frag_desc.vaddr = dma_alloc_coherent(ar->dev, size, &htt->frag_desc.paddr, GFP_KERNEL); - if (!htt->frag_desc.vaddr) { - ath10k_err(ar, "failed to alloc fragment desc memory\n"); + if (!htt->frag_desc.vaddr) return -ENOMEM; - } return 0; }