net: udp: remove redundant initialization in udp_send_skb
authorMenglong Dong <dong.menglong@zte.com.cn>
Fri, 6 Nov 2020 06:42:40 +0000 (01:42 -0500)
committerJakub Kicinski <kuba@kernel.org>
Tue, 10 Nov 2020 00:42:34 +0000 (16:42 -0800)
commitcffb8f6177bbfc235e7054a4bb321b126b64205c
treecc07ca5bc603c358567095f912194a3019d1c178
parent0169b8205431589b945c29a576c65f2037a5bc26
net: udp: remove redundant initialization in udp_send_skb

The initialization for 'err' with 0 is redundant and can be removed,
as it is updated by ip_send_skb and not used before that.

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