All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Haneen Mohammed <hamohammed.sa@gmail.com>
Cc: outreachy-kernel@googlegroups.com
Subject: Re: [Outreachy kernel] [PATCH] Staging: emxx_udc: Remove argument test from function
Date: Sun, 1 Mar 2015 17:01:09 -0800	[thread overview]
Message-ID: <20150302010109.GA21644@kroah.com> (raw)
In-Reply-To: <1425244693-8713-1-git-send-email-hamohammed.sa@gmail.com>

On Mon, Mar 02, 2015 at 12:18:13AM +0300, Haneen Mohammed wrote:
> This patch removes the test statement for an argument to  _nbu2ss_pullup function,
> for it can't be null due to previous derefrences when its called.
> 
> Signed-off-by: Haneen Mohammed <hamohammed.sa@gmail.com>
> Acked-by: Julia Lawall <julia.lawall@lip6.fr>
> ---
>  drivers/staging/emxx_udc/emxx_udc.c | 5 -----
>  1 file changed, 5 deletions(-)
> 
> diff --git a/drivers/staging/emxx_udc/emxx_udc.c b/drivers/staging/emxx_udc/emxx_udc.c
> index 0bfd268..b2a89a6 100644
> --- a/drivers/staging/emxx_udc/emxx_udc.c
> +++ b/drivers/staging/emxx_udc/emxx_udc.c
> @@ -2257,11 +2257,6 @@ static int _nbu2ss_pullup(struct nbu2ss_udc *udc, int is_on)
>  {
>  	u32	reg_dt;
>  
> -	if (!udc) {
> -		pr_err("udc: %s, bad param\n", __func__);
> -		return -EINVAL;
> -	}
> -
>  	if (udc->vbus_active == 0)
>  		return -ESHUTDOWN;
>  

Does not apply :(


      parent reply	other threads:[~2015-03-02  1:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-01 21:18 [PATCH] Staging: emxx_udc: Remove argument test from function Haneen Mohammed
2015-03-01 22:31 ` [Outreachy kernel] " Julia Lawall
2015-03-02  1:01 ` 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=20150302010109.GA21644@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=hamohammed.sa@gmail.com \
    --cc=outreachy-kernel@googlegroups.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.