net: udp: remove redundant initialization in udp_dump_one
authorMenglong Dong <dong.menglong@zte.com.cn>
Fri, 6 Nov 2020 06:42:38 +0000 (01:42 -0500)
committerJakub Kicinski <kuba@kernel.org>
Tue, 10 Nov 2020 00:42:49 +0000 (16:42 -0800)
commit6e822c2c2919a6c2031198ea9a642b75218f24bb
tree2e41911640f2adef5876116b318fd6721f725b7f
parentcffb8f6177bbfc235e7054a4bb321b126b64205c
net: udp: remove redundant initialization in udp_dump_one

The initialization for 'err' with '-EINVAL' is redundant and
can be removed, as it is updated soon and not used.

Signed-off-by: Menglong Dong <dong.menglong@zte.com.cn>
Link: https://lore.kernel.org/r/1604644960-48378-2-git-send-email-dong.menglong@zte.com.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/udp_diag.c