bonding: bond_open error return value
commitb473946a0853860e13b51c28add5524741117786
authorstephen hemminger <shemminger@vyatta.com>
Mon, 25 Jan 2010 23:34:15 +0000 (25 23:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Jan 2010 13:55:54 +0000 (28 05:55 -0800)
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