From: Greg KH <gregkh@linuxfoundation.org>
To: Alberto Pires de Oliveira Neto <mrpenguin2005@gmail.com>
Cc: oleg.drokin@intel.com, andreas.dilger@intel.com,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] staging: lustre: fld_request.c: Remove else after return.
Date: Sun, 1 Mar 2015 17:30:57 -0800 [thread overview]
Message-ID: <20150302013057.GA3395@kroah.com> (raw)
In-Reply-To: <1425141443-20534-1-git-send-email-mrpenguin2005@gmail.com>
On Sat, Feb 28, 2015 at 01:37:23PM -0300, Alberto Pires de Oliveira Neto wrote:
> This patch fixes checkpatch.pl warning.
> WARNING: else is not generally useful after a break or return
>
> Signed-off-by: Alberto Pires de Oliveira Neto <mrpenguin2005@gmail.com>
> ---
> drivers/staging/lustre/lustre/fld/fld_request.c | 7 +++----
> 1 file changed, 3 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/staging/lustre/lustre/fld/fld_request.c b/drivers/staging/lustre/lustre/fld/fld_request.c
> index b8d17e1..0b00301 100644
> --- a/drivers/staging/lustre/lustre/fld/fld_request.c
> +++ b/drivers/staging/lustre/lustre/fld/fld_request.c
> @@ -217,10 +217,9 @@ int fld_client_add_target(struct lu_client_fld *fld,
> CERROR("%s: Attempt to add target %s (idx %llu) on fly - skip it\n",
> fld->lcf_name, name, tar->ft_idx);
> return 0;
> - } else {
> - CDEBUG(D_INFO, "%s: Adding target %s (idx %llu)\n",
> - fld->lcf_name, name, tar->ft_idx);
> - }
> + }
> + CDEBUG(D_INFO, "%s: Adding target %s (idx %llu)\n",
> + fld->lcf_name, name, tar->ft_idx);
>
> OBD_ALLOC_PTR(target);
> if (target == NULL)
Never add new checkpatch errors when trying to fix checkpatch errors, as
you will never end up removing them...
Please fix and resend.
next prev parent reply other threads:[~2015-03-02 1:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-28 16:37 Alberto Pires de Oliveira Neto
2015-03-02 1:30 ` Greg KH [this message]
2015-03-02 1:45 ` Alberto Pires de Oliveira Neto
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=20150302013057.GA3395@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=andreas.dilger@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mrpenguin2005@gmail.com \
--cc=oleg.drokin@intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®