mlxsw: spectrum_span: Use a more fitting error code
authorPetr Machata <petrm@mellanox.com>
Fri, 11 May 2018 08:57:31 +0000 (11:57 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 May 2018 20:01:24 +0000 (16:01 -0400)
commitc41c0dd7a641cb28f7239e7086419741af78c448
tree37a8644baea05208c1a09c4c51afd4d9811d86c6
parentfc74ecbc293cba27fd8adee7a18fbda2f8d9e285
mlxsw: spectrum_span: Use a more fitting error code

ENOENT is suitable when an item is looked for in a collection and can't
be found. The failure here is actually a depletion of a resource, where
ENOBUFS is the more fitting error code.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c