]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commitc09f103e89f4554b17c68c3a0a50140fc9133352
tree60c88614a2ce022372fbb7a96842ff4e7e853f58
parentdda0c2e7ed21d7db1568920366e616c6c037b814
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