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:
Phil Sutter 2016-08-07 13:19:01 +02:00 committed by Stephen Hemminger
parent 1eeb6fdac8
commit c15feb99a4
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ get_act(char ***argv_p)
{
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);
return -10;
}