]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt: simplify cls_flower command switch and handle default case
authorJiri Pirko <jiri@mellanox.com>
Sun, 24 Jun 2018 08:38:37 +0000 (10:38 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Jun 2018 07:14:03 +0000 (16:14 +0900)
commit7f6d351c951c7d922a76eeb99af76a90f850c102
tree4e8b74e76996d144831778e99620ac4ad6b82146
parentba4fa7a0eb478de49ae7b72362738acf51f5deab
bnxt: simplify cls_flower command switch and handle default case

Currently the default case is not handled, which with future command
introductions would introduce a warning. So handle it and make the
switch a bit simplier removing unneeded "rc" variable.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c