Message ID | 1561435999-28316-2-git-send-email-periyasa@codeaurora.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 323d5816437a4c35a4e6ee0a4cfd8b9ca25a1dbc |
Delegated to: | Kalle Valo |
Headers | show |
Series | [1/5] ath11k: fix variable name warnings | expand |
diff --git a/drivers/net/wireless/ath/ath11k/dp_rx.c b/drivers/net/wireless/ath/ath11k/dp_rx.c index afe8399..17be3cc 100644 --- a/drivers/net/wireless/ath/ath11k/dp_rx.c +++ b/drivers/net/wireless/ath/ath11k/dp_rx.c @@ -569,10 +569,8 @@ static void ath11k_dp_rx_tid_del_func(struct ath11k_dp *dp, void *ctx, } elem = kzalloc(sizeof(*elem), GFP_ATOMIC); - if (!elem) { - ath11k_warn(ab, "failed to allocate memory for cache flush element\n"); + if (!elem) goto free_desc; - } elem->ts = jiffies; memcpy(&elem->data, rx_tid, sizeof(*rx_tid)); diff --git a/drivers/net/wireless/ath/ath11k/wmi.c b/drivers/net/wireless/ath/ath11k/wmi.c index f800c77..085ee32 100644 --- a/drivers/net/wireless/ath/ath11k/wmi.c +++ b/drivers/net/wireless/ath/ath11k/wmi.c @@ -4527,9 +4527,7 @@ static int ath11k_reg_chan_list_event(struct ath11k_base *ab, u8 *evt_buf, u32 l struct ath11k *ar; reg_info = kzalloc(sizeof(*reg_info), GFP_ATOMIC); - if (!reg_info) { - ath11k_warn(ab, "Unable to allocate memory for processing chan_info event\n"); ret = -ENOMEM; goto fallback; }
drivers/net/wireless/ath/ath11k/dp_rx.c:573: Possible unnecessary 'out of memory' message drivers/net/wireless/ath/ath11k/wmi.c:4528: Possible unnecessary 'out of memory' message Signed-off-by: Karthikeyan Periyasamy <periyasa@codeaurora.org> --- drivers/net/wireless/ath/ath11k/dp_rx.c | 4 +--- drivers/net/wireless/ath/ath11k/wmi.c | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-)