Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 21891354 authored by Kalle Valo's avatar Kalle Valo
Browse files

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: default avatarKalle Valo <kvalo@codeaurora.org>
parent 3ed39f8e
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -106,10 +106,8 @@ ath10k_swap_code_seg_alloc(struct ath10k *ar, size_t swap_bin_len)

	virt_addr = dma_alloc_coherent(ar->dev, swap_bin_len, &paddr,
				       GFP_KERNEL);
	if (!virt_addr) {
		ath10k_err(ar, "failed to allocate dma coherent memory\n");
	if (!virt_addr)
		return NULL;
	}

	seg_info->seg_hw_info.bus_addr[0] = __cpu_to_le32(paddr);
	seg_info->seg_hw_info.size = __cpu_to_le32(swap_bin_len);