From: Ian Abbott <abbotti@mev.co.uk>
To: Luis de Bethencourt <luisbg@osg.samsung.com>,
linux-kernel@vger.kernel.org
Cc: hsweeten@visionengravers.com, gregkh@linuxfoundation.org,
surya.seetharaman9@gmail.com, devel@driverdev.osusl.org
Subject: Re: [PATCH v2] staging: comedi: ni_tiocmd: remove unused code
Date: Wed, 30 Sep 2015 15:28:14 +0100 [thread overview]
Message-ID: <560BF17E.6040806@mev.co.uk> (raw)
In-Reply-To: <1443525723-6323-1-git-send-email-luisbg@osg.samsung.com>
On 29/09/15 12:22, Luis de Bethencourt wrote:
> Code after a return will never run, removing this dead code.
>
> Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> Signed-off-by: Luis de Bethencourt <luisbg@osg.samsung.com>
> ---
>
> Hi,
>
> This is a better fix than the previous patch:
> http://lkml.iu.edu/hypermail/linux/kernel/1509.3/02741.html
>
> Suggestion of just removing the dead code was in:
> http://lkml.iu.edu/hypermail/linux/kernel/1509.3/02939.html
>
> Thanks,
> Luis
>
> drivers/staging/comedi/drivers/ni_tiocmd.c | 6 ------
> 1 file changed, 6 deletions(-)
>
> diff --git a/drivers/staging/comedi/drivers/ni_tiocmd.c b/drivers/staging/comedi/drivers/ni_tiocmd.c
> index 9b124b0..437f723 100644
> --- a/drivers/staging/comedi/drivers/ni_tiocmd.c
> +++ b/drivers/staging/comedi/drivers/ni_tiocmd.c
> @@ -157,12 +157,6 @@ static int ni_tio_output_cmd(struct comedi_subdevice *s)
> dev_err(counter->counter_dev->dev->class_dev,
> "output commands not yet implemented.\n");
> return -ENOTSUPP;
> -
> - counter->mite_chan->dir = COMEDI_OUTPUT;
> - mite_prep_dma(counter->mite_chan, 32, 32);
> - ni_tio_configure_dma(counter, true, false);
> - mite_dma_arm(counter->mite_chan);
> - return ni_tio_arm(counter, 1, NI_GPCT_ARM_IMMEDIATE);
> }
>
> static int ni_tio_cmd_setup(struct comedi_subdevice *s)
>
Thanks!
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
--
-=( Ian Abbott @ MEV Ltd. E-mail: <abbotti@mev.co.uk> )=-
-=( Web: http://www.mev.co.uk/ )=-
prev parent reply other threads:[~2015-09-30 14:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-29 11:22 [PATCH v2] staging: comedi: ni_tiocmd: remove unused code Luis de Bethencourt
2015-09-30 14:28 ` 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=560BF17E.6040806@mev.co.uk \
--to=abbotti@mev.co.uk \
--cc=devel@driverdev.osusl.org \
--cc=gregkh@linuxfoundation.org \
--cc=hsweeten@visionengravers.com \
--cc=linux-kernel@vger.kernel.org \
--cc=luisbg@osg.samsung.com \
--cc=surya.seetharaman9@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox