tc/m_gact: Fix action_a2n() return code check
The function returns zero on success.
Reported-by: Mark Bloch <markb@mellanox.com>
Fixes: 69f5aff63c ("tc: use action_a2n() everywhere")
Signed-off-by: Phil Sutter <phil@nwl.cc>
This commit is contained in:
parent
1eeb6fdac8
commit
c15feb99a4
|
|
@ -73,7 +73,7 @@ get_act(char ***argv_p)
|
||||||
{
|
{
|
||||||
int n;
|
int n;
|
||||||
|
|
||||||
if (!action_a2n(**argv_p, &n, false)) {
|
if (action_a2n(**argv_p, &n, false)) {
|
||||||
fprintf(stderr, "bad action type %s\n", **argv_p);
|
fprintf(stderr, "bad action type %s\n", **argv_p);
|
||||||
return -10;
|
return -10;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue