Skip to content
Commit 61004d1d authored by Louis Peens's avatar Louis Peens Committed by Jakub Kicinski
Browse files

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: 9d5447ed

 ("nfp: flower: fixup ipv6/ipv4 route lookup for neigh events")
Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarLouis Peens <louis.peens@corigine.com>
Signed-off-by: default avatarSimon Horman <simon.horman@corigine.com>
Link: https://lore.kernel.org/r/20220510074845.41457-1-simon.horman@corigine.com
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent ecd17a87
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment