public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Charles Clément" <caratorn@gmail.com>
To: Mark <reodge@gmail.com>
Cc: gregkh@suse.de, shawn.bohrer@gmail.com,
	fmhess@users.sourceforge.net, andrea.gelmini@gelma.net,
	devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Staging: comedi: Fix long line lengths in comedi_fops.c
Date: Mon, 10 May 2010 08:31:13 -0700	[thread overview]
Message-ID: <20100510153111.GA28889@fujitsu> (raw)
In-Reply-To: <1273484217-4073-1-git-send-email-reodge@gmail.com>

Hello Mark,

On Mon, May 10, 2010 at 05:36:57PM +0800, Mark wrote:
> This patch fixes lots of long line lengths in comedi_fops.c found by
> checkpatch.pl
> 
> Signed-off-by: Mark Rankilor <reodge@gmail.com>
> ---
>  drivers/staging/comedi/comedi_fops.c |   38 ++++++++++++++++++++++-----------
>  1 files changed, 25 insertions(+), 13 deletions(-)
> 
> diff --git a/drivers/staging/comedi/comedi_fops.c b/drivers/staging/comedi/comedi_fops.c
> index e7095d7..9bfab73 100644
> --- a/drivers/staging/comedi/comedi_fops.c
> +++ b/drivers/staging/comedi/comedi_fops.c
> @@ -962,7 +962,8 @@ static int do_insn_ioctl(struct comedi_device *dev,
>  	if (ret < 0)
>  		goto error;
>  	if (insn.insn & INSN_MASK_READ) {
> -		if (copy_to_user(insn.data, data, insn.n * sizeof(unsigned int))) {
> +		if (copy_to_user
> +		    (insn.data, data, insn.n * sizeof(unsigned int))) {

I think it'd be better to keep the opening parenthesis on the same line
of the function and maybe the first argument, too.

> 
> _______________________________________________
> devel mailing list
> devel@linuxdriverproject.org
> http://driverdev.linuxdriverproject.org/mailman/listinfo/devel

-- 
Charles Clément


  reply	other threads:[~2010-05-10 15:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-10  9:36 [PATCH] Staging: comedi: Fix long line lengths in comedi_fops.c Mark
2010-05-10 15:31 ` Charles Clément [this message]
2010-05-11  0:36   ` Mark Rankilor
  -- strict thread matches above, loose matches on Subject: below --
2010-05-13  9:44 Mark

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=20100510153111.GA28889@fujitsu \
    --to=caratorn@gmail.com \
    --cc=andrea.gelmini@gelma.net \
    --cc=devel@driverdev.osuosl.org \
    --cc=fmhess@users.sourceforge.net \
    --cc=gregkh@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=reodge@gmail.com \
    --cc=shawn.bohrer@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