]> 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)
commit207cabc3a10454506193b22832dcfcad711c711e
tree37a8644baea05208c1a09c4c51afd4d9811d86c6
parent3d32081e6fad58f4a2a65b766b52f9275915fdd0
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