Re: [RESEND PATCH] apparmor: Remove unnecessary NULL check before kvfree()

From: Thorsten Blum
Date: Thu Nov 07 2024 - 12:24:48 EST


On 7. Nov 2024, at 18:09, John Johansen wrote:
> On 11/7/24 03:25, Thorsten Blum wrote:
>> Since kvfree() already checks if its argument is NULL, an additional
>> check before calling kvfree() is unnecessary and can be removed.
>> Remove it and the following Coccinelle/coccicheck warning reported by
>> ifnullfree.cocci:
>> WARNING: NULL check before some freeing functions is not needed
>> Signed-off-by: Thorsten Blum <thorsten.blum@xxxxxxxxx>
>
> sorry I am way way behind on this. I am going to work through the backlog
> on this list today.
>
> Acked-by: John Johansen <john.johansen@xxxxxxxxxxxxx>
>
> I have pulled this in to my local tree, and will push it up in a few
> hours once I been through the other patches and testing.

No worries and thanks for the update.

Thorsten