Remove unneeded test for NULL.  Reported by Thomas Dillig
<[EMAIL PROTECTED]> and Isil Dillig <[EMAIL PROTECTED]> via Stephen
Hemminger <[EMAIL PROTECTED]>.

Signed-off-by: Jay Vosburgh <[EMAIL PROTECTED]>


--- 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
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to