On Tue, Jun 6, 2023 at 3:26 PM Markus Elfring <[email protected]> wrote:
> From: Markus Elfring <[email protected]>
> Date: Tue, 6 Jun 2023 15:00:18 +0200
>
> It can be known that the function “kfree” performs a null pointer check
> for its input parameter.
> It is therefore not needed to repeat such a check before its call.
>
> Thus remove a redundant pointer check.
>
> Signed-off-by: Markus Elfring <[email protected]>
Lu Hongfei sent a patch changing the code around this location
so I rebased it manually and applied, check the result, thanks!
Yours,
Linus Walleij