diff options
author | Louis Peens <louis.peens@corigine.com> | 2022-05-10 09:48:45 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-05-10 15:15:12 -0700 |
commit | 61004d1d4badb5ba31d57d49003c17cfcdfed027 (patch) | |
tree | 3593b76446a51458879cc294918f2c15abede613 /net/core/dev.c | |
parent | ecd17a87eb78b5bd5ca6d1aa20c39f2bc3591337 (diff) | |
download | linux-61004d1d4badb5ba31d57d49003c17cfcdfed027.tar.bz2 |
nfp: flower: fix 'variable 'flow6' set but not used'
Kernel test robot reported an issue after a recent patch about an
unused variable when CONFIG_IPV6 is disabled. Move the variable
declaration to be inside the #ifdef, and do a bit more cleanup. There
is no need to use a temporary ipv6 bool value, it is just checked once,
remove the extra variable and just do the check directly.
Fixes: 9d5447ed44b5 ("nfp: flower: fixup ipv6/ipv4 route lookup for neigh events")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Louis Peens <louis.peens@corigine.com>
Signed-off-by: Simon Horman <simon.horman@corigine.com>
Link: https://lore.kernel.org/r/20220510074845.41457-1-simon.horman@corigine.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/core/dev.c')
0 files changed, 0 insertions, 0 deletions