mptcp: token: fix unititialized variable
authorDavide Caratti <dcaratti@redhat.com>
Mon, 2 Nov 2020 09:09:49 +0000 (10:09 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 3 Nov 2020 21:08:30 +0000 (13:08 -0800)
commite16b874ee87aa70cd0a7145346ff5f41349b514c
tree5341f87cfaf74b4ae01ca668f97d6c50f9fac63f
parent9621618130bf7e83635367c13b9a6ee53935bb37
mptcp: token: fix unititialized variable

gcc complains about use of uninitialized 'num'. Fix it by doing the first
assignment of 'num' when the variable is declared.

Fixes: 96d890daad05 ("mptcp: add msk interations helper")
Signed-off-by: Davide Caratti <dcaratti@redhat.com>
Acked-by: Paolo Abeni <pabeni@redhat.com>
Link: https://lore.kernel.org/r/49e20da5d467a73414d4294a8bd35e2cb1befd49.1604308087.git.dcaratti@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/token.c