mirror_iproute2/devlink
Hangbin Liu 7a34b9d098 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>
2016-10-17 05:30:45 -07:00
..
.gitignore devlink: ignore build result 2016-04-11 13:35:12 -07:00
devlink.c devlink: Convert conditional in dl_argv_handle_port() to switch() 2016-10-17 05:30:45 -07:00
Makefile Make builds default to quiet mode 2016-05-31 12:13:07 -07:00
mnlg.c add devlink tool 2016-03-27 10:57:15 -07:00
mnlg.h add devlink tool 2016-03-27 10:57:15 -07:00