bonding: Invert test
authorJoe Perches <joe@perches.com>
Tue, 18 Feb 2014 17:42:47 +0000 (09:42 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Feb 2014 20:37:51 +0000 (15:37 -0500)
commit21f374c6cfbf98c1efceee0b528ce784d215935c
tree0a126201a245ccc65938006ea8c35ac778b1c7b6
parent157550fbbbf932970b231394b1069f50104824c5
bonding: Invert test

Make the error case return early.
Make the normal return at the bottom of the function.
Reduces indent for readability.

Signed-off-by: Joe Perches <joe@perches.com>
Reviewed-by: Ding Tianhong <dingtianhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_3ad.c