Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1643624 > unrolled thread

[PATCH] staging: wilc1000: Delete an error message for a failed memory allocation in Handle_Key()

Started bySF Markus Elfring <elfring@users.sourceforge.net>
First post2017-05-17 22:40 +0200
Last post2017-05-17 22:40 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] staging: wilc1000: Delete an error message for a failed  memory allocation in Handle_Key() SF Markus Elfring <elfring@users.sourceforge.net> - 2017-05-17 22:40 +0200

#1643624 — [PATCH] staging: wilc1000: Delete an error message for a failed memory allocation in Handle_Key()

FromSF Markus Elfring <elfring@users.sourceforge.net>
Date2017-05-17 22:40 +0200
Subject[PATCH] staging: wilc1000: Delete an error message for a failed memory allocation in Handle_Key()
Message-ID<tIdTI-7QG-7@gated-at.bofh.it>
From: Markus Elfring <elfring@users.sourceforge.net>
Date: Wed, 17 May 2017 22:26:07 +0200

Omit an extra message for a memory allocation failure in this function.

This issue was detected by using the Coccinelle software.

Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
---
 drivers/staging/wilc1000/host_interface.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c
index c3a8af081880..17a31bbd3665 100644
--- a/drivers/staging/wilc1000/host_interface.c
+++ b/drivers/staging/wilc1000/host_interface.c
@@ -1688,7 +1688,6 @@ static int Handle_Key(struct wilc_vif *vif,
 		} else if (pstrHostIFkeyAttr->action & ADDKEY) {
 			pu8keybuf = kmalloc(PTK_KEY_MSG_LEN, GFP_KERNEL);
 			if (!pu8keybuf) {
-				netdev_err(vif->ndev, "No buffer send PTK\n");
 				ret = -ENOMEM;
 				goto _WPAPtk_end_case_;
 			}
-- 
2.13.0

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web