]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit28461d9a7668c214a8ad2e2419f2bd08ec5c7326
tree37a8644baea05208c1a09c4c51afd4d9811d86c6
parentcd1b7668d54ab5e80a182fdd20ef00dbc1cb7132
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