Files
linux/drivers/net
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
..
2009-09-22 14:00:10 -07:00
2009-10-07 22:02:53 -07:00
2009-10-01 14:48:25 -07:00
2009-09-26 10:17:19 -07:00
2009-10-06 15:22:55 -07:00
2009-09-30 20:11:11 -07:00
2009-09-01 01:13:50 -07:00
2009-09-01 01:13:50 -07:00
…
2009-09-01 01:13:50 -07:00
…
2009-09-01 01:13:50 -07:00
2009-09-01 01:13:50 -07:00
2009-09-01 01:13:50 -07:00
2009-09-01 01:13:50 -07:00
…
2009-09-01 01:13:50 -07:00
…
…
…
…
…
…
…
…
…
…
2009-08-12 23:03:00 -07:00
2009-08-12 22:53:28 -07:00
2009-10-11 23:30:16 -07:00
2009-08-12 23:03:01 -07:00
…
2009-10-11 23:30:16 -07:00
2009-10-11 23:30:16 -07:00
…
…
…
…
…
…
2009-07-06 18:54:51 -07:00
…
…
2009-09-23 07:39:43 -07:00
…
…
2009-10-12 23:54:05 -07:00
…
…
…
…
…
2009-09-07 01:56:52 -07:00
…
…
2009-10-02 09:55:19 -07:00
2009-07-06 13:05:13 -07:00
2009-09-23 07:39:43 -07:00
2009-07-20 08:23:26 -07:00
…
…
…
…
…
2009-09-03 20:02:13 -07:00
…
…
…
…
2009-09-21 15:14:58 +02:00
…
…
…
2009-10-07 01:10:46 -07:00
…
2009-08-02 12:20:40 -07:00
…
…
2009-10-01 15:14:54 -07:00
2009-10-01 15:14:54 -07:00
2009-10-01 15:14:55 -07:00
2009-10-01 15:14:55 -07:00
…
2009-09-19 13:13:17 -07:00
…
2009-09-15 09:37:12 -07:00
…
…
…
…
…
…
…
…
…
…
…
2009-10-07 03:37:39 -07:00
2009-10-07 03:37:39 -07:00
…
…
…