From: Ian Abbott <abbotti@mev.co.uk>
To: Chase Southwood <chase.southwood@yahoo.com>,
"gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>
Cc: Ian Abbott <ian.abbott@mev.co.uk>,
"hsweeten@visionengravers.com" <hsweeten@visionengravers.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"devel@driverdev.osuosl.org" <devel@driverdev.osuosl.org>
Subject: Re: [PATCH] Staging: comedi: remove unnecessary braces in pcl711.c
Date: Tue, 14 Jan 2014 11:50:16 +0000 [thread overview]
Message-ID: <52D52478.3060706@mev.co.uk> (raw)
In-Reply-To: <1389669196-15041-1-git-send-email-chase.southwood@yahoo.com>
On 2014-01-14 03:13, Chase Southwood wrote:
> This patch for pcl711.c removes braces causing a checkpatch.pl warning.
> It also removes an empty else arm of an if-else statement.
>
> Signed-off-by: Chase Southwood <chase.southwood@yahoo.com>
> ---
>
> I removed the "else" arm of this statement because it was empty, save for the "ignore" comment. If it is instead preferred kernel style for this empty else to remain in, let me know and I will correct this patch accordingly.
>
> drivers/staging/comedi/drivers/pcl711.c | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)
>
> diff --git a/drivers/staging/comedi/drivers/pcl711.c b/drivers/staging/comedi/drivers/pcl711.c
> index f0fc123..6595788 100644
> --- a/drivers/staging/comedi/drivers/pcl711.c
> +++ b/drivers/staging/comedi/drivers/pcl711.c
> @@ -336,11 +336,8 @@ static int pcl711_ai_cmdtest(struct comedi_device *dev,
> err |= cfc_check_trigger_arg_is(&cmd->convert_arg, 0);
> err |= cfc_check_trigger_arg_is(&cmd->scan_end_arg, cmd->chanlist_len);
>
> - if (cmd->stop_src == TRIG_NONE) {
> + if (cmd->stop_src == TRIG_NONE)
> err |= cfc_check_trigger_arg_is(&cmd->stop_arg, 0);
> - } else {
> - /* ignore */
> - }
>
> if (err)
> return 3;
>
Not sure if it's worth me reviewing these minor clean-up patches or not,
but FWIW I approve of this patch.
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
--
-=( Ian Abbott @ MEV Ltd. E-mail: <abbotti@mev.co.uk> )=-
-=( Tel: +44 (0)161 477 1898 FAX: +44 (0)161 718 3587 )=-
prev parent reply other threads:[~2014-01-14 11:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-14 3:13 [PATCH] Staging: comedi: remove unnecessary braces in pcl711.c Chase Southwood
2014-01-14 7:14 ` Dan Carpenter
2014-01-14 11:50 ` Ian Abbott [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=52D52478.3060706@mev.co.uk \
--to=abbotti@mev.co.uk \
--cc=chase.southwood@yahoo.com \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@linuxfoundation.org \
--cc=hsweeten@visionengravers.com \
--cc=ian.abbott@mev.co.uk \
--cc=linux-kernel@vger.kernel.org \
/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