summaryrefslogtreecommitdiffstats
path: root/net/xfrm/xfrm_policy.c
diff options
context:
space:
mode:
authorluo penghao <luo.penghao@zte.com.cn>2021-11-04 03:19:31 +0000
committerSteffen Klassert <steffen.klassert@secunet.com>2021-11-18 19:15:04 +0100
commitc6e7871894a3b975ae45995d69cf761566904595 (patch)
tree6dfa18e094fd9c6c54af65ce47aff19e70a4f748 /net/xfrm/xfrm_policy.c
parentbb8cecf8ba127abca8ccd102207a59c55fdae515 (diff)
downloadlinux-c6e7871894a3b975ae45995d69cf761566904595.tar.bz2
ipv6/esp6: Remove structure variables and alignment statements
The definition of this variable is just to find the length of the structure after aligning the structure. The PTR alignment function is to optimize the size of the structure. In fact, it doesn't seem to be of much use, because both members of the structure are of type u32. So I think that the definition of the variable and the corresponding alignment can be deleted, the value of extralen can be directly passed in the size of the structure. The clang_analyzer complains as follows: net/ipv6/esp6.c:117:27 warning: Value stored to 'extra' during its initialization is never read Reported-by: Zeal Robot <zealci@zte.com.cn> Signed-off-by: luo penghao <luo.penghao@zte.com.cn> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/xfrm/xfrm_policy.c')
0 files changed, 0 insertions, 0 deletions