mirror of
https://github.com/torvalds/linux.git
synced 2024-11-14 08:02:07 +00:00
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>
This commit is contained in:
parent
dda0c2e7ed
commit
c09f103e89
@ -638,7 +638,6 @@ static void ethnl_default_notify(struct net_device *dev, unsigned int cmd,
|
||||
if (ret < 0)
|
||||
goto err_cleanup;
|
||||
reply_len = ret + ethnl_reply_header_size();
|
||||
ret = -ENOMEM;
|
||||
skb = genlmsg_new(reply_len, GFP_KERNEL);
|
||||
if (!skb)
|
||||
goto err_cleanup;
|
||||
|
Loading…
Reference in New Issue
Block a user