All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: G Pooja Shamili <poojashamili@gmail.com>
Cc: outreachy-kernel@googlegroups.com
Subject: Re: [Outreachy kernel] [PATCH v2] staging: rtl8192e: Clean up tests on the results of functions that return NULL on failure.
Date: Fri, 11 Mar 2016 09:25:32 -0800	[thread overview]
Message-ID: <20160311172532.GA19547@kroah.com> (raw)
In-Reply-To: <20160306091858.GA31543@localhost>

On Sun, Mar 06, 2016 at 02:48:58PM +0530, G Pooja Shamili wrote:
> Functions returning NULL as a return value on failure can be tested for
> as !x, NULL == x or x == NULL. As !x is commonly used, all the tests
> need to be modified to use !x for a consistent coding style. In this
> patch, the function kzalloc is considered.
> 
> Coccinelle is used to achieve this, the semantic patch being:
> 
> @@
> expression E;
> statement S;
> @@
> 
> E = kzalloc(...);
> 
> if (
> (
> +	!
> 	E
> -	== NULL
> |
> +	!
> -	NULL ==
> 	E
> )
>  ) S
> 
> Signed-off-by: G Pooja Shamili <poojashamili@gmail.com>
> ---
> Changes from Version 1:
> 	    * Changed the name in the From: and Signed-off-by: to full
> name.	    

You sent me 2 patches with pretty much the identical subject line, yet
they all did 3 different things.  Please fix up and resend as a patch
series.

thanks,

greg k-h


      reply	other threads:[~2016-03-11 17:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-06  9:18 [PATCH v2] staging: rtl8192e: Clean up tests on the results of functions that return NULL on failure G Pooja Shamili
2016-03-11 17:25 ` Greg KH [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160311172532.GA19547@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=outreachy-kernel@googlegroups.com \
    --cc=poojashamili@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.