Skip to content

Commit c072035

Browse files
ISCAS-Vulabpcmoore
authored andcommitted
audit: Remove redundant null check
Because kfree_skb already checked NULL skb parameter, so the additional check is unnecessary, just remove it. Signed-off-by: Xu Wang <vulab@iscas.ac.cn> Signed-off-by: Paul Moore <paul@paul-moore.com>
1 parent 265c320 commit c072035

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

kernel/audit.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -934,8 +934,7 @@ static void audit_free_reply(struct audit_reply *reply)
934934
if (!reply)
935935
return;
936936

937-
if (reply->skb)
938-
kfree_skb(reply->skb);
937+
kfree_skb(reply->skb);
939938
if (reply->net)
940939
put_net(reply->net);
941940
kfree(reply);

0 commit comments

Comments
 (0)