OSDN Git Service

net/core: Remove unused assignment operations and variable
authorluo penghao <cgel.zte@gmail.com>
Thu, 21 Oct 2021 06:40:20 +0000 (06:40 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Oct 2021 11:48:59 +0000 (12:48 +0100)
commit50af5969bb22bb8ea757f87934c2478715afa854
tree761f361e0da920520a20e83a83063c9fd709bc26
parentc5c6e589a8c811c7f20024cc22209ae984fc2b98
net/core: Remove unused assignment operations and variable

Although if_info_size is assigned, it has not been used. And the variable
should also be deleted.

The clang_analyzer complains as follows:

net/core/rtnetlink.c:3806: warning:

Although the value stored to 'if_info_size' is used in the enclosing
expression, the value is never actually read from 'if_info_size'.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: luo penghao <luo.penghao@zte.com.cn>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/rtnetlink.c