Repository navigation
Commit 50af596
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>1 parent c5c6e58 commit 50af596
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3804 | 3804 | | |
3805 | 3805 | | |
3806 | 3806 | | |
3807 | | - | |
3808 | 3807 | | |
3809 | | - | |
| 3808 | + | |
3810 | 3809 | | |
3811 | 3810 | | |
3812 | 3811 | | |
| |||
0 commit comments