OSDN Git Service

mptcp: pm nl: reduce variable scope
authorMatthieu Baerts <matthieu.baerts@tessares.net>
Mon, 25 Jan 2021 18:59:02 +0000 (10:59 -0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 28 Jan 2021 00:53:55 +0000 (16:53 -0800)
commit1f2f1931b2a8864ed30e445e360ba793c2ac5224
treefadb89e76aa7bfc8eb444bc00eb145eaa729d757
parent7b9b0f7e1230adde95be4958469d60c6fc06bc36
mptcp: pm nl: reduce variable scope

To avoid confusions like when working on the previous patch, better to
declare and assign this variable only where it is needed.

Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/pm_netlink.c