]> git.baikalelectronics.ru Git - kernel.git/commit
ethtool: Remove redundant ret assignments
authorluo penghao <luo.penghao@zte.com.cn>
Thu, 30 Dec 2021 06:26:44 +0000 (06:26 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Dec 2021 13:29:14 +0000 (13:29 +0000)
commitd76c3ea98136aa80b81a153398166d79f1457c7b
tree60c88614a2ce022372fbb7a96842ff4e7e853f58
parentc60a56833edd2df3d80867b26d44732d61f218e5
ethtool: Remove redundant ret assignments

The assignment here will be overwritten, so it should be deleted

The clang_analyzer complains as follows:

net/ethtool/netlink.c:

Value stored to 'ret' is never read

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: luo penghao <luo.penghao@zte.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ethtool/netlink.c