linux-stable/drivers/net/bonding
Nicolas de Pesloüan 38fc0026da bonding: change bond_create_proc_entry() to return void
The function bond_create_proc_entry is currently of type int.

Two versions of this function exist:

The one in the ifdef CONFIG_PROC_FS branch always return 0.
The one in the else branch (which is empty) return nothing.

When CONFIG_PROC_FS is undef, this cause the following warning:

drivers/net/bonding/bond_main.c: In function `bond_create_proc_entry':
drivers/net/bonding/bond_main.c:3393: warning: control reaches end of
non-void function

No caller of this function use the returned value.

So change the returned type from int to void and remove the
useless return 0; .

Signed-off-by: Nicolas de Pesloüan <nicolas.2p.debian@free.fr>
Reported-by: Rakib Mullick <rakib.mullick@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2009-10-13 00:45:06 -07:00
..
bond_3ad.c trivial: fix typo "to to" in multiple files 2009-09-21 15:14:55 +02:00
bond_3ad.h Remove duplicate slow protocol define in bond_3ad.h 2009-05-09 13:15:49 -07:00
bond_alb.c bonding: use compare_ether_addr_64bits() in ALB 2009-09-01 17:40:26 -07:00
bond_alb.h Convert bonding timers to workqueues 2007-10-23 20:32:00 -04:00
bond_ipv6.c bonding: wipe out printk's 2009-08-13 16:43:32 -07:00
bond_main.c bonding: change bond_create_proc_entry() to return void 2009-10-13 00:45:06 -07:00
bond_sysfs.c bonding: introduce primary_reselect option 2009-10-07 01:07:39 -07:00
bonding.h bonding: introduce primary_reselect option 2009-10-07 01:07:39 -07:00
Makefile bonding: send IPv6 neighbor advertisement on failover 2008-11-06 00:49:37 -05:00