]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Use notifier_from_errno() in notifier block
authorIdo Schimmel <idosch@mellanox.com>
Mon, 20 Jun 2016 21:03:59 +0000 (23:03 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jun 2016 09:02:48 +0000 (05:02 -0400)
commit27f6b1f4c37150001ba5675a937a2706f758d2c7
tree2061fa2e8e337f5a49bd873f3ea79072e43e8b06
parenta180ddbc9f4a9962c7d8a2b6d76cef5c3ebb68aa
mlxsw: spectrum: Use notifier_from_errno() in notifier block

Instead of checking the error value and returning NOTIFY_BAD, just use
notifier_from_errno() 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