From: Greg KH <gregkh@linuxfoundation.org>
To: Sanjana Sanikommu <sanjana99reddy99@gmail.com>
Cc: outreachy-kernel@googlegroups.com
Subject: Re: [PATCH] staging: gasket: apex: Modify return type suggested by Coccinelle.
Date: Mon, 1 Apr 2019 19:31:39 +0200 [thread overview]
Message-ID: <20190401173139.GA4212@kroah.com> (raw)
In-Reply-To: <20190401132906.4406-1-sanjana99reddy99@gmail.com>
On Mon, Apr 01, 2019 at 06:59:06PM +0530, Sanjana Sanikommu wrote:
> The last two lines in the function could
> be compressed into one. Avoid usage of local variable.
> Issue found by Coccinelle using ret.cocci.
>
> Signed-off-by: Sanjana Sanikommu <sanjana99reddy99@gmail.com>
> ---
> drivers/staging/gasket/apex_driver.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/staging/gasket/apex_driver.c b/drivers/staging/gasket/apex_driver.c
> index a79613db71ef..2be45ee9d061 100644
> --- a/drivers/staging/gasket/apex_driver.c
> +++ b/drivers/staging/gasket/apex_driver.c
> @@ -439,9 +439,7 @@ static int apex_reset(struct gasket_dev *gasket_dev)
> if (ret)
> return ret;
> }
> - ret = apex_quit_reset(gasket_dev);
> -
> - return ret;
> + return apex_quit_reset(gasket_dev);
> }
>
> /*
This patch does not apply to my tree at all, I think someone else
already did this before you did. Please update your local tree and
verify this.
thanks,
greg k-h
next prev parent reply other threads:[~2019-04-01 17:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-01 13:29 [PATCH] staging: gasket: apex: Modify return type suggested by Coccinelle Sanjana Sanikommu
2019-04-01 17:31 ` Greg KH [this message]
2019-04-02 4:40 ` sanjana99reddy99
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=20190401173139.GA4212@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=outreachy-kernel@googlegroups.com \
--cc=sanjana99reddy99@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.