On Tue, Jun 14, 2022 at 8:13 AM Xiu Jianfeng <xiujianfeng@xxxxxxxxxx> wrote:Thanks for the review, and kindly ping here ...
The implements of {ip,tcp,udp,dccp,sctp,ipv6}_hdr(skb) guarantee thatReviewed-by: Paul Moore <paul@xxxxxxxxxxxxxx>
they will never return NULL, and elsewhere user don't do the check
as well, so remove the check here.
Signed-off-by: Xiu Jianfeng <xiujianfeng@xxxxxxxxxx>
---
security/lsm_audit.c | 14 +-------------
1 file changed, 1 insertion(+), 13 deletions(-)