lsm: clean up redundant NULL pointer check
authorXiu Jianfeng <xiujianfeng@huawei.com>
Tue, 16 Aug 2022 02:44:01 +0000 (22:44 -0400)
committerPaul Moore <paul@paul-moore.com>
Tue, 16 Aug 2022 02:44:01 +0000 (22:44 -0400)
commit4847c0eb663ab431b56cd82c9c2627967f09f2ef
treefbf11ca07e0c4c261b0231fcb9eb58ef433cae57
parent568035b01cfb107af8d2e4bd2fb9aea22cf5b868
lsm: clean up redundant NULL pointer check

The implements of {ip,tcp,udp,dccp,sctp,ipv6}_hdr(skb) guarantee that
they will never return NULL, and elsewhere users don't do the check
as well, so remove the check here.

Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
[PM: subject line tweaks]
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/lsm_audit.c