]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
bonding: fix two compiler warnings
authorJay Vosburgh <fubar@us.ibm.com>
Sat, 22 Mar 2008 05:29:34 +0000 (22:29 -0700)
committerJeff Garzik <jeff@garzik.org>
Wed, 26 Mar 2008 03:15:40 +0000 (23:15 -0400)
commit966bc6f434df4a02108d01dda8cd52951fe853da
treeeb0a8e20b80475e22b4c5038a9bc246fda5fc605
parent2bf86b7aa8e74bf81a9872f7b610f49b610a4649
bonding: fix two compiler warnings

Fix two compiler warnings that are new with recent versions of gcc
(apparently 4.2 and up).  One is fixed by refactoring; this change was
supplied by Stephen Hemminger.  The other was fixed by labelling the
variable as uninitialized_var() after confirming via inspection that it
cannot actually be used uninitialized.

Signed-off-by: Jay Vosburgh <fubar@us.ibm.com>
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/bonding/bond_alb.c
drivers/net/bonding/bond_main.c