examples/ethtool: remove dead code
Remove dead code, and print better return for other errors. >>> CID 120411: Control flow issues (DEADCODE) >>> Execution cannot reach this statement: "return;". Fixes: bda68ab9d1e7 ("examples/ethtool: add user-space ethtool sample application") Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Acked-by: Remy Horton <remy.horton@intel.com>
This commit is contained in:
parent
98b5ecbf76
commit
94cb97a039
@ -480,12 +480,9 @@ pcmd_macaddr_callback(void *ptr_params,
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (stat == 0)
|
||||
return;
|
||||
else if (stat == -ENOTSUP)
|
||||
printf("Port %i: Operation not supported\n", params->port);
|
||||
else
|
||||
printf("Port %i: Error %i\n", params->port, stat);
|
||||
|
||||
printf("Port %i: Error %s\n", params->port,
|
||||
strerror(-stat));
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
x
Reference in New Issue
Block a user