]> git.ipfire.org Git - thirdparty/iproute2.git/commit
iplink_can: reduce the visibility of tdc in can_parse_opt()
authorVincent Mailhol <mailhol.vincent@wanadoo.fr>
Tue, 12 Nov 2024 17:27:52 +0000 (02:27 +0900)
committerDavid Ahern <dsahern@kernel.org>
Mon, 18 Nov 2024 16:50:05 +0000 (16:50 +0000)
commit3bd5fb4d57aaef8cab1cfddc9d00664512923af4
tree13c2eeae2be5f38becb15e0b0be34f9ec12523fe
parentdf72757907f3d29bce92afd638d3ef6f870977e6
iplink_can: reduce the visibility of tdc in can_parse_opt()

tdc is only used in a single if block. Move its declaration to the top
of the compound statement where it is used.

Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Signed-off-by: David Ahern <dsahern@kernel.org>
ip/iplink_can.c