]> bbs.cooldavid.org Git - net-next-2.6.git/commit - drivers/net/bonding/bond_main.c
bonding: bond_open error return value
authorstephen hemminger <shemminger@vyatta.com>
Mon, 25 Jan 2010 23:34:15 +0000 (23:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Jan 2010 13:55:54 +0000 (05:55 -0800)
commitb473946a0853860e13b51c28add5524741117786
treef60ad1068ba160e2628a915aa073ced46872f966
parent3ce1cc52d2e76b6a6b9d0b52b70eb181497efa50
bonding: bond_open error return value

The convention for API functions in kernel is to return errno value;
bond_open would return -1 if alb setup failed. The only reason that
could happen is if kmalloc() failed.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c