public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/4] Staging: comedi: fix semicolon coding style issue in ni_660x.c
@ 2013-10-16 19:24 Dhanunjaya Naidu Ravada
  2013-10-16 19:34 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Dhanunjaya Naidu Ravada @ 2013-10-16 19:24 UTC (permalink / raw)
  To: abbotti, hsweeten, gregkh, wfp5p; +Cc: devel, linux-kernel, Dhanunjaya

From: Dhanunjaya <dhanunjaya.matrix@gmail.com>

This is a patch to the ni_660x.c file that fixes up a semicolon warning
found by the checkpatch.pl tool.

Signed-off-by: Dhanunjaya Naidu Ravada <dhanunjaya.matrix@gmail.com>
---
 drivers/staging/comedi/drivers/ni_660x.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/comedi/drivers/ni_660x.c b/drivers/staging/comedi/drivers/ni_660x.c
index 3607336..95bb432 100644
--- a/drivers/staging/comedi/drivers/ni_660x.c
+++ b/drivers/staging/comedi/drivers/ni_660x.c
@@ -28,7 +28,7 @@
  *
  * Encoders work.  PulseGeneration (both single pulse and pulse train)
  * works.  Buffered commands work for input but not output.
- * 
+ *
  * References:
  * DAQ 660x Register-Level Programmer Manual  (NI 370505A-01)
  * DAQ 6601/6602 User Manual (NI 322137B-01)
@@ -1232,7 +1232,7 @@ static int ni_660x_auto_attach(struct comedi_device *dev,
 			s->type = COMEDI_SUBD_COUNTER;
 			s->subdev_flags =
 			    SDF_READABLE | SDF_WRITABLE | SDF_LSAMPL |
-			    SDF_CMD_READ /* | SDF_CMD_WRITE */ ;
+			    SDF_CMD_READ; /* | SDF_CMD_WRITE */
 			s->n_chan = 3;
 			s->maxdata = 0xffffffff;
 			s->insn_read = ni_660x_GPCT_rinsn;
-- 
1.8.1.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/4] Staging: comedi: fix semicolon coding style issue in ni_660x.c
  2013-10-16 19:24 [PATCH 1/4] Staging: comedi: fix semicolon coding style issue in ni_660x.c Dhanunjaya Naidu Ravada
@ 2013-10-16 19:34 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2013-10-16 19:34 UTC (permalink / raw)
  To: Dhanunjaya Naidu Ravada; +Cc: abbotti, hsweeten, wfp5p, devel, linux-kernel

On Thu, Oct 17, 2013 at 12:54:52AM +0530, Dhanunjaya Naidu Ravada wrote:
> From: Dhanunjaya <dhanunjaya.matrix@gmail.com>

Again, doesn't match the signed-off-by: or From: line on your email :(

> This is a patch to the ni_660x.c file that fixes up a semicolon warning
> found by the checkpatch.pl tool.

No it isn't, it also does something else in this file.

> 
> Signed-off-by: Dhanunjaya Naidu Ravada <dhanunjaya.matrix@gmail.com>
> ---
>  drivers/staging/comedi/drivers/ni_660x.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/staging/comedi/drivers/ni_660x.c b/drivers/staging/comedi/drivers/ni_660x.c
> index 3607336..95bb432 100644
> --- a/drivers/staging/comedi/drivers/ni_660x.c
> +++ b/drivers/staging/comedi/drivers/ni_660x.c
> @@ -28,7 +28,7 @@
>   *
>   * Encoders work.  PulseGeneration (both single pulse and pulse train)
>   * works.  Buffered commands work for input but not output.
> - * 
> + *

That doesn't look like a semicolon fix.

>   * References:
>   * DAQ 660x Register-Level Programmer Manual  (NI 370505A-01)
>   * DAQ 6601/6602 User Manual (NI 322137B-01)
> @@ -1232,7 +1232,7 @@ static int ni_660x_auto_attach(struct comedi_device *dev,
>  			s->type = COMEDI_SUBD_COUNTER;
>  			s->subdev_flags =
>  			    SDF_READABLE | SDF_WRITABLE | SDF_LSAMPL |
> -			    SDF_CMD_READ /* | SDF_CMD_WRITE */ ;
> +			    SDF_CMD_READ; /* | SDF_CMD_WRITE */

Nope, please leave the original code, it's correct.

greg k-h

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-10-16 19:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-16 19:24 [PATCH 1/4] Staging: comedi: fix semicolon coding style issue in ni_660x.c Dhanunjaya Naidu Ravada
2013-10-16 19:34 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox