examples/ethtool: remove dead code
authorStephen Hemminger <stephen@networkplumber.org>
Tue, 8 Dec 2015 16:51:09 +0000 (08:51 -0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 9 Dec 2015 21:02:33 +0000 (22:02 +0100)
commit94cb97a03999dda5ccbc89b8f96c51bcfc677c5c
treefae5ed51e7f64fc202ba302c2d672a9fc3f418a3
parent98b5ecbf76f0743128b4e0dd69a5481ace5005f6
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>
examples/ethtool/ethtool-app/ethapp.c