]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite7eed52d7820cbec9a9ae0332825b609219982ee
treecc07ca5bc603c358567095f912194a3019d1c178
parentf3659fc3ef795deb7c354202df16095f97d05b63
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