]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Use WARN_ON() return value
authorIdo Schimmel <idosch@mellanox.com>
Mon, 20 Jun 2016 21:04:03 +0000 (23:04 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jun 2016 09:02:49 +0000 (05:02 -0400)
commita065ab85ffdf3ef5c739d895fe49a686fe1325ec
treeb9693a034a9719dbbe8f1d126dd3650c45cc8e31
parent5b8625a9cd405acf6bc08d300594d180baaa0fdd
mlxsw: spectrum: Use WARN_ON() return value

Instead of checking for a condition and then issue the warning, just do
it in one go and simplify the code.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c