net: dsa: qca8k: fix warning in LAG feature
authorAnsuel Smith <ansuelsmth@gmail.com>
Tue, 23 Nov 2021 15:44:46 +0000 (16:44 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 25 Nov 2021 01:28:34 +0000 (17:28 -0800)
commit0898ca67b86e14207d4feb3f3fea8b87cec5aab1
tree1c3e011629d3a8226be86fc0119fe38504c62ad1
parente670e1e86beb82a6eef0d9b451829a32cfa23c81
net: dsa: qca8k: fix warning in LAG feature

Fix warning reported by bot.
Make sure hash is init to 0 and fix wrong logic for hash_type in
qca8k_lag_can_offload.

Reported-by: kernel test robot <lkp@intel.com>
Fixes: def975307c01 ("net: dsa: qca8k: add LAG support")
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20211123154446.31019-1-ansuelsmth@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/qca8k.c