]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite2e3ea71b47729c00d873cfca58ba64e1ce6e859
tree0a126201a245ccc65938006ea8c35ac778b1c7b6
parent651947c10899ee84abb6685af2f0dc665e182e63
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