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)
commit80bedf1a62d65fb79eaaf030e75174886f1a794c
tree2061fa2e8e337f5a49bd873f3ea79072e43e8b06
parent527f227334eb82b9f1ffe8a399d56ecf9ae8ebaf
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