Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1698127

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

From Gilad Ben-Yossef <gilad@benyossef.com>
Newsgroups linux.kernel
Subject Re: [PATCH] staging: ccree: Fix unnecessary NULL check before kfree'ing it
Date 2017-07-27 18:10 +0200
Message-ID <u7Twm-8ht-3@gated-at.bofh.it> (permalink)
References <u5jQp-87F-23@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi,

On Thu, Jul 20, 2017 at 4:37 PM,  <sunil.m@techveda.org> wrote:
> From: Suniel Mahesh <sunil.m@techveda.org>
>
> kfree(NULL) is safe and their is no need for a NULL check. Pointed out
> by checkpatch.
>
> Signed-off-by: Suniel Mahesh <sunil.m@techveda.org>
> ---
> 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@benyossef.com>

Gilad

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] staging: ccree: Fix unnecessary NULL check before kfree'ing it sunil.m@techveda.org - 2017-07-20 15:40 +0200
  Re: [PATCH] staging: ccree: Fix unnecessary NULL check before  kfree'ing it Gilad Ben-Yossef <gilad@benyossef.com> - 2017-07-27 18:10 +0200

csiph-web