commit | 7a34b9d098fce6778a02c475fd877e0b34aa7a13 | [log] [tgz] |
---|---|---|
author | Hangbin Liu <liuhangbin@gmail.com> | Sun Oct 09 10:14:18 2016 +0800 |
committer | Stephen Hemminger <stephen@networkplumber.org> | Mon Oct 17 05:30:45 2016 -0700 |
tree | 5aebead7ad4de2363195da37258f2da24dd8acb2 | |
parent | 9208b4e7c983447368c43e4cdc3d2cfce9e19069 [diff] |
devlink: Convert conditional in dl_argv_handle_port() to switch() Discovered by Phil's covscan. The final return statement is never reached. This is not inherently clear from looking at the code, so change the conditional to a switch() statement which should clarify this. CC: Phil Sutter <phil@nwl.cc> Signed-off-by: Hangbin Liu <liuhangbin@gmail.com> Acked-by: Phil Sutter <phil@nwl.cc>