]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: use pre-defined macro in bond_mode_name instead of magic number 0
authorWang Sheng-Hui <shhuiw@gmail.com>
Wed, 24 Jul 2013 06:53:26 +0000 (14:53 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Jul 2013 20:53:49 +0000 (13:53 -0700)
commitfcb54c1c1a94f03cc13f26b2d5817fadf5369469
tree5083d205c337825a85051872e6cb6cba574d7c15
parent515e85ccfa8f2cf74bbe3b6f435650d96e8bf746
bonding: use pre-defined macro in bond_mode_name instead of magic number 0

We have BOND_MODE_ROUNDROBIN pre-defined as 0, and it's the lowest
mode number.
Use it to check the arg lower bound instead of magic number 0 in
bond_mode_name.

Signed-off-by: Wang Sheng-Hui <shhuiw@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c