From: Rehas Sachdeva <aquannie@gmail.com>
To: Julia Lawall <julia.lawall@lip6.fr>
Cc: outreachy-kernel@googlegroups.com,
Oleg Drokin <oleg.drokin@intel.com>,
Andreas Dilger <andreas.dilger@intel.com>,
James Simmons <jsimmons@infradead.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Subject: Re: [Outreachy kernel] [PATCH 5/6] staging: lustre: Remove unnecessary 'return'
Date: Thu, 15 Sep 2016 18:28:30 +0530 [thread overview]
Message-ID: <20160915125830.GA14355@toblerone> (raw)
In-Reply-To: <alpine.DEB.2.10.1609151010010.3045@hadrien>
On Thu, Sep 15, 2016 at 10:10:49AM +0200, Julia Lawall wrote:
> On Thu, 15 Sep 2016, Rehas Sachdeva wrote:
>
> > Fixes checkpatch.pl warning:
> > WARNING: void function return statements are not generally useful.
>
> It would be better to say what you did, rather than saying fix. Here you
> could say:
>
> Remove unnecessary void return at the end of a function. Issue detected
> by checkpatch.
>
> julia
>
Hi Julia,
Please take a look at v2. Also please suggest if I should make similar
changes to the commit messages on other patches in this patchset as well.
Thanks.
Rehas
>
> >
> > Signed-off-by: Rehas Sachdeva <aquannie@gmail.com>
> > ---
> > drivers/staging/lustre/lustre/llite/rw.c | 2 --
> > 1 file changed, 2 deletions(-)
> >
> > diff --git a/drivers/staging/lustre/lustre/llite/rw.c b/drivers/staging/lustre/lustre/llite/rw.c
> > index bb85d16..23747fa 100644
> > --- a/drivers/staging/lustre/lustre/llite/rw.c
> > +++ b/drivers/staging/lustre/lustre/llite/rw.c
> > @@ -667,7 +667,6 @@ static void ras_update_stride_detector(struct ll_readahead_state *ras,
> > ras->ras_stride_length = stride_gap + ras->ras_consecutive_pages;
> >
> > RAS_CDEBUG(ras);
> > - return;
> > }
> >
> > /* Stride Read-ahead window will be increased inc_len according to
> > @@ -883,7 +882,6 @@ out_unlock:
> > RAS_CDEBUG(ras);
> > ras->ras_request_index++;
> > spin_unlock(&ras->ras_lock);
> > - return;
> > }
> >
> > int ll_writepage(struct page *vmpage, struct writeback_control *wbc)
> > --
> > 2.7.4
> >
> > --
> > You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
> > To unsubscribe from this group and stop receiving emails from it, send an email to outreachy-kernel+unsubscribe@googlegroups.com.
> > To post to this group, send email to outreachy-kernel@googlegroups.com.
> > To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/bfedf0128abd4c08512b015481be1d5fd1d0d01e.1473923837.git.aquannie%40gmail.com.
> > For more options, visit https://groups.google.com/d/optout.
> >
next prev parent reply other threads:[~2016-09-15 12:58 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-15 8:04 [PATCH 0/6] staging: lustre: Fix multiple checkpatch warnings Rehas Sachdeva
2016-09-15 8:04 ` [PATCH 1/6] staging: lustre: Add space b/w concatenated strings Rehas Sachdeva
2016-09-15 10:19 ` Greg Kroah-Hartman
2016-09-15 11:58 ` Rehas Sachdeva
2016-09-15 8:05 ` [PATCH 2/6] staging: lustre: Fix block comment style Rehas Sachdeva
2016-09-15 8:06 ` [PATCH 4/6] staging: lustre: Change 'seq_printf' to 'seq_puts' Rehas Sachdeva
2016-09-15 8:07 ` [PATCH 5/6] staging: lustre: Remove unnecessary 'return' Rehas Sachdeva
2016-09-15 8:10 ` [Outreachy kernel] " Julia Lawall
2016-09-15 12:03 ` Rehas Sachdeva
2016-09-15 12:58 ` Rehas Sachdeva [this message]
2016-09-15 8:08 ` [PATCH 6/6] staging: lustre: Fix indentation Rehas Sachdeva
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=20160915125830.GA14355@toblerone \
--to=aquannie@gmail.com \
--cc=andreas.dilger@intel.com \
--cc=gregkh@linuxfoundation.org \
--cc=jsimmons@infradead.org \
--cc=julia.lawall@lip6.fr \
--cc=oleg.drokin@intel.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.