netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] bonding: Delete an error message for a failed memory allocation in bond_update_slave_arr()
@ 2018-01-01 16:07 SF Markus Elfring
  2018-01-03  7:00 ` Mahesh Bandewar (महेश बंडेवार)
  0 siblings, 1 reply; 8+ messages in thread
From: SF Markus Elfring @ 2018-01-01 16:07 UTC (permalink / raw)
  To: netdev, Andy Gospodarek, Jay Vosburgh, Veaceslav Falico
  Cc: LKML, kernel-janitors

From: Markus Elfring <elfring@users.sourceforge.net>
Date: Mon, 1 Jan 2018 17:00:04 +0100

Omit 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 <elfring@users.sourceforge.net>
---
 drivers/net/bonding/bond_main.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c
index c669554d70bb..a96e0c9cc4bf 100644
--- a/drivers/net/bonding/bond_main.c
+++ b/drivers/net/bonding/bond_main.c
@@ -3910,7 +3910,6 @@ int bond_update_slave_arr(struct bonding *bond, struct slave *skipslave)
 			  GFP_KERNEL);
 	if (!new_arr) {
 		ret = -ENOMEM;
-		pr_err("Failed to build slave-array.\n");
 		goto out;
 	}
 	if (BOND_MODE(bond) == BOND_MODE_8023AD) {
-- 
2.15.1

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-01-04 21:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-01 16:07 [PATCH] bonding: Delete an error message for a failed memory allocation in bond_update_slave_arr() SF Markus Elfring
2018-01-03  7:00 ` Mahesh Bandewar (महेश बंडेवार)
2018-01-03  8:45   ` SF Markus Elfring
2018-01-03 19:28     ` Mahesh Bandewar (महेश बंडेवार)
2018-01-03 21:58       ` Eric Dumazet
2018-01-04  8:19       ` bonding: Completion of error handling around bond_update_slave_arr() SF Markus Elfring
2018-01-04 18:52         ` Mahesh Bandewar (महेश बंडेवार)
2018-01-04 21:41           ` SF Markus Elfring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).