DORMANTno replies

[PATCH 4/7] bonding: Remove unneeded NULL test

From: Jay Vosburgh <hidden>
Date: 2006-09-01 22:10:04

Remove unneeded test for NULL.  Reported by Thomas Dillig
[off-list ref] and Isil Dillig [off-list ref] via Stephen
Hemminger [off-list ref].

Signed-off-by: Jay Vosburgh <redacted>

--- netdev-2.6.git-upstream/drivers/net/bonding/bond_sysfs.c	2006/08/19 10:22:17	1.1
+++ netdev-2.6.git-upstream/drivers/net/bonding/bond_sysfs.c	2006/08/19 15:01:09	1.2
@@ -1093,7 +1093,7 @@
 			     strlen(slave->dev->name)) == 0) {
         			old_active = bond->curr_active_slave;
         			new_active = slave;
-        			if (new_active && (new_active == old_active)) {
+        			if (new_active == old_active) {
 					/* do nothing */
 					printk(KERN_INFO DRV_NAME
 				       	       ": %s: %s is already the current active slave.\n",
-- 
VGER BF report: H 0.139804
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help