rt2x00: Delete an error message for a failed memory allocation in rt2x00queue_allocate()
PATCH 1/1 rt2x00: Delete an error message for a failed memory allocation in rt2x00queue_allocate()
From: Markus Elfring <[email protected]>
Date: Fri, 29 Dec 2017 22:11:42 +0100
Omit an extra message for a memory allocation failure in this function.
This issue was detected by using the Coccinelle software.
--- drivers/net/wireless/ralink/rt2x00/rt2x00queue.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/net/wireless/ralink/rt2x00/rt2x00queue.c +1 -3
@@ -1244,10 +1244,8 @@ int rt2x00queue_allocate(struct rt2x00_dev *rt2x00dev) rt2x00dev->data_queues =2 + rt2x00dev->ops->tx_queues + req_atim; queue =kcalloc (rt2x00dev->data_queues,sizeof (*queue),GFP_KERNEL ); -if (!queue) { -rt2x00_err (rt2x00dev,"Queue allocation failed\n" ); +if (!queue)return -ENOMEM ; - }/* * Initialize pointers
Signature · 1 line
2.15.1
Quoted 8 lines · SF Markus Elfring
From: Markus Elfring <[email protected]>
Date: Fri, 29 Dec 2017 22:11:42 +0100Omit an extra message for a memory allocation failure in this function.
This issue was detected by using the Coccinelle software.
Signed-off-by Markus Elfring <[email protected]>
Quoted 9 lines · SF Markus Elfring
From: Markus Elfring <[email protected]>
Date: Fri, 29 Dec 2017 22:11:42 +0100Omit an extra message for a memory allocation failure in this function.
This issue was detected by using the Coccinelle software.
Signed-off-by Markus Elfring <[email protected]>
Patch applied to wireless-drivers-next.git, thanks.
cd7c0cdab7ff rt2x00: Delete an error message for a failed memory allocation in rt2x00queue_allocate()
Signature · 3 lines
https://patchwork.kernel.org/patch/10137399/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches