]> 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)
commite66f4a1c474b585507ebf66f5d18ac743374b456
tree60c88614a2ce022372fbb7a96842ff4e7e853f58
parentb88360ea714b33e8110a2927fc217a8bce7865bd
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