aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/amazon
diff options
context:
space:
mode:
authorNathan Chancellor <natechancellor@gmail.com>2019-03-07 16:29:33 -0700
committerDavid S. Miller <davem@davemloft.net>2019-03-08 15:26:21 -0800
commit09073525f8b9095931e5a82209b61abc7ce4c9d5 (patch)
tree3639e38d35623ae7de651c4b861638a443da2580 /drivers/net/ethernet/amazon
parent8139too : Add support for U.S. Robotics USR997901A 10/100 Cardbus NIC (diff)
downloadlinux-dev-09073525f8b9095931e5a82209b61abc7ce4c9d5.tar.xz
linux-dev-09073525f8b9095931e5a82209b61abc7ce4c9d5.zip
net: ethernet: sun: Zero initialize class in default case in niu_add_ethtool_tcam_entry
When building with -Wsometimes-uninitialized, Clang warns: drivers/net/ethernet/sun/niu.c:7466:5: warning: variable 'class' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized] The default case can never happen because i can only be 0 to 3 (NIU_L3_PROG_CLS is defined as 4). To make this clear to Clang, just zero initialize class in the default case (use the macro CLASS_CODE_UNRECOG to make it clear this shouldn't happen). Link: https://github.com/ClangBuiltLinux/linux/issues/403 Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Reviewed-by: Nick Desaulniers <ndesaulniers@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/amazon')
0 files changed, 0 insertions, 0 deletions