linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] staging: comedi: drivers: adl_pci9118: Fixes format of line 1283.
@ 2018-08-24 21:06 Sven Luthi
  2018-08-24 21:06 ` [PATCH] staging: comedi: drivers: dt3000: Fixes warning on multiline dereference Sven Luthi
  2018-08-25  7:14 ` [PATCH] staging: comedi: drivers: adl_pci9118: Fixes format of line 1283 Dan Carpenter
  0 siblings, 2 replies; 3+ messages in thread
From: Sven Luthi @ 2018-08-24 21:06 UTC (permalink / raw)
  To: gregkh; +Cc: abbotti, hsweeten, devel, linux-kernel

Checkpatch repored "Lines should not end with a '('" for line 1283.

Moved opening parenthesis of function on line 1283 onto next line.

Signed-off-by: Sven Luthi <dev@svenluthi.com>
---
 drivers/staging/comedi/drivers/adl_pci9118.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/comedi/drivers/adl_pci9118.c b/drivers/staging/comedi/drivers/adl_pci9118.c
index 2528ca0ede6d..07431dc9cde9 100644
--- a/drivers/staging/comedi/drivers/adl_pci9118.c
+++ b/drivers/staging/comedi/drivers/adl_pci9118.c
@@ -1280,8 +1280,8 @@ static int pci9118_ai_cmdtest(struct comedi_device *dev,
 			} else {
 				arg = cmd->convert_arg * cmd->chanlist_len;
 			}
-			err |= comedi_check_trigger_arg_min(
-				&cmd->scan_begin_arg, arg);
+			err |= comedi_check_trigger_arg_min
+			       (&cmd->scan_begin_arg, arg);
 		}
 	}
 
-- 
2.14.1


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

* [PATCH] staging: comedi: drivers: dt3000: Fixes warning on multiline dereference.
  2018-08-24 21:06 [PATCH] staging: comedi: drivers: adl_pci9118: Fixes format of line 1283 Sven Luthi
@ 2018-08-24 21:06 ` Sven Luthi
  2018-08-25  7:14 ` [PATCH] staging: comedi: drivers: adl_pci9118: Fixes format of line 1283 Dan Carpenter
  1 sibling, 0 replies; 3+ messages in thread
From: Sven Luthi @ 2018-08-24 21:06 UTC (permalink / raw)
  To: gregkh; +Cc: abbotti, hsweeten, devel, linux-kernel

Checkpatch complains about a pointer dereference
on line 442-444 being split across multiple lines.

Merged the pointer dereference into one line and moved it
along with the other function call parameters onto the following
line so it would fit without exceeding the 80 character line limit.

Signed-off-by: Sven Luthi <dev@svenluthi.com>
---
 drivers/staging/comedi/drivers/dt3000.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/comedi/drivers/dt3000.c b/drivers/staging/comedi/drivers/dt3000.c
index 2edf3ee91300..b3b5fe707659 100644
--- a/drivers/staging/comedi/drivers/dt3000.c
+++ b/drivers/staging/comedi/drivers/dt3000.c
@@ -439,9 +439,8 @@ static int dt3k_ai_cmdtest(struct comedi_device *dev,
 
 		if (cmd->scan_begin_src == TRIG_TIMER) {
 			arg = cmd->convert_arg * cmd->scan_end_arg;
-			err |= comedi_check_trigger_arg_min(&cmd->
-							    scan_begin_arg,
-							    arg);
+			err |= comedi_check_trigger_arg_min
+			       (&cmd->scan_begin_arg, arg);
 		}
 	}
 
-- 
2.14.1


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

* Re: [PATCH] staging: comedi: drivers: adl_pci9118: Fixes format of line 1283.
  2018-08-24 21:06 [PATCH] staging: comedi: drivers: adl_pci9118: Fixes format of line 1283 Sven Luthi
  2018-08-24 21:06 ` [PATCH] staging: comedi: drivers: dt3000: Fixes warning on multiline dereference Sven Luthi
@ 2018-08-25  7:14 ` Dan Carpenter
  1 sibling, 0 replies; 3+ messages in thread
From: Dan Carpenter @ 2018-08-25  7:14 UTC (permalink / raw)
  To: Sven Luthi; +Cc: gregkh, devel, abbotti, linux-kernel

On Fri, Aug 24, 2018 at 11:06:56PM +0200, Sven Luthi wrote:
> Checkpatch repored "Lines should not end with a '('" for line 1283.
> 
> Moved opening parenthesis of function on line 1283 onto next line.
> 
> Signed-off-by: Sven Luthi <dev@svenluthi.com>
> ---
>  drivers/staging/comedi/drivers/adl_pci9118.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/staging/comedi/drivers/adl_pci9118.c b/drivers/staging/comedi/drivers/adl_pci9118.c
> index 2528ca0ede6d..07431dc9cde9 100644
> --- a/drivers/staging/comedi/drivers/adl_pci9118.c
> +++ b/drivers/staging/comedi/drivers/adl_pci9118.c
> @@ -1280,8 +1280,8 @@ static int pci9118_ai_cmdtest(struct comedi_device *dev,
>  			} else {
>  				arg = cmd->convert_arg * cmd->chanlist_len;
>  			}
> -			err |= comedi_check_trigger_arg_min(
> -				&cmd->scan_begin_arg, arg);
> +			err |= comedi_check_trigger_arg_min
> +			       (&cmd->scan_begin_arg, arg);

The original is fine.  It's probably better than the new version.
Checkpatch.pl is just a hint, not a command.

regards,
dan carpenter


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

end of thread, other threads:[~2018-08-25  7:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-24 21:06 [PATCH] staging: comedi: drivers: adl_pci9118: Fixes format of line 1283 Sven Luthi
2018-08-24 21:06 ` [PATCH] staging: comedi: drivers: dt3000: Fixes warning on multiline dereference Sven Luthi
2018-08-25  7:14 ` [PATCH] staging: comedi: drivers: adl_pci9118: Fixes format of line 1283 Dan Carpenter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).