]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ath10k: remove extraneous error message in tx alloc
authorMohammed Shafi Shajakhan <mohammed@qti.qualcomm.com>
Wed, 9 Nov 2016 01:40:59 +0000 (03:40 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Tue, 15 Nov 2016 15:05:38 +0000 (17:05 +0200)
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 <mohammed@qti.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/htt_tx.c

index ab2ee90a3ee27dc0b40c47df52a3eaa0766697fa..ccbc8c03abc1a159303edaebad01c93c749405e0 100644 (file)
@@ -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;
 }