]> git.baikalelectronics.ru Git - kernel.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)
commit750c568a9a1beecadce3c2e0a67d350fbd07b9ea
treeeb0a8e20b80475e22b4c5038a9bc246fda5fc605
parent89c729361a5704310617d5ff9b768116acdbe276
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