]> git.proxmox.com Git - mirror_iproute2.git/commit
devlink: Convert conditional in dl_argv_handle_port() to switch()
authorHangbin Liu <liuhangbin@gmail.com>
Sun, 9 Oct 2016 02:14:18 +0000 (10:14 +0800)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 17 Oct 2016 12:30:45 +0000 (05:30 -0700)
commit7a34b9d098fce6778a02c475fd877e0b34aa7a13
tree5aebead7ad4de2363195da37258f2da24dd8acb2
parent9208b4e7c983447368c43e4cdc3d2cfce9e19069
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>
devlink/devlink.c