Re: [PATCH] staging: ccree: Fix unnecessary NULL check before kfree'ing it

From: Gilad Ben-Yossef
Date: Thu Jul 27 2017 - 12:09:53 EST


Hi,

On Thu, Jul 20, 2017 at 4:37 PM, <sunil.m@xxxxxxxxxxxx> wrote:
> From: Suniel Mahesh <sunil.m@xxxxxxxxxxxx>
>
> kfree(NULL) is safe and their is no need for a NULL check. Pointed out
> by checkpatch.
>
> Signed-off-by: Suniel Mahesh <sunil.m@xxxxxxxxxxxx>
> ---
> Note:
> - Patch was compile tested and built(ARCH=arm) on next-20170719.
> No build issues reported.

Patch applies against staging-next + latest changes and it builds and runs.

Acked-by: Gilad Ben-Yossef <gilad@xxxxxxxxxxxxx>

Gilad