]> www.infradead.org Git - users/dwmw2/linux.git/commit
ipv6: remove redundant check
authorXi Huang <xuiagnh@gmail.com>
Tue, 20 Aug 2024 11:54:42 +0000 (19:54 +0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 22 Aug 2024 00:21:09 +0000 (17:21 -0700)
commitd35a3a8f1b7f27ac1ea0f7068dcab0c08846ac44
treecd7e3f9f632cd6adeeb25b1707ee88e40b9bbd7b
parent2d86ecb64b51127f0d9eac29cd4c58215246a029
ipv6: remove redundant check

err varibale will be set everytime,like -ENOBUFS and in if (err < 0),
 when code gets into this path. This check will just slowdown
the execution and that's all.

Signed-off-by: Xi Huang <xuiagnh@gmail.com>
Reviewed-by: Florian Westphal <fw@strlen.de>
Link: https://patch.msgid.link/20240820115442.49366-1-xuiagnh@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv6/addrconf.c