Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ath10k: remove unnecessary 'out of memory' message

Fixes checkpatch warning:

drivers/net/wireless/ath/ath10k/swap.c:110: Possible unnecessary 'out of memory' message

Signed-off-by: Kalle Valo <kvalo@codeaurora.org>

+1 -3
+1 -3
drivers/net/wireless/ath/ath10k/swap.c
··· 106 106 107 107 virt_addr = dma_alloc_coherent(ar->dev, swap_bin_len, &paddr, 108 108 GFP_KERNEL); 109 - if (!virt_addr) { 110 - ath10k_err(ar, "failed to allocate dma coherent memory\n"); 109 + if (!virt_addr) 111 110 return NULL; 112 - } 113 111 114 112 seg_info->seg_hw_info.bus_addr[0] = __cpu_to_le32(paddr); 115 113 seg_info->seg_hw_info.size = __cpu_to_le32(swap_bin_len);