diff options
author | Ido Schimmel <[email protected]> | 2017-06-04 16:53:40 +0200 |
---|---|---|
committer | David S. Miller <[email protected]> | 2017-06-04 23:49:49 -0400 |
commit | de5ed99e9777a487da4ad9c58e409ed26b640d9e (patch) | |
tree | 1746950039e57e11c44674b289d216f469b7b006 /net/switchdev/switchdev.c | |
parent | da0abcf93fe5353268b0b5b30396fb10dc32bef4 (diff) |
mlxsw: spectrum_router: Align RIF index allocation with existing code
The way we usually allocate an index is by letting the allocation
function return an error instead of an invalid index.
Do the same for RIF index.
Signed-off-by: Ido Schimmel <[email protected]>
Reviewed-by: Petr Machata <[email protected]>
Signed-off-by: Jiri Pirko <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions