Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2477127imm; Mon, 10 Sep 2018 01:36:29 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZ38jo8JdO44cV9WTrnPLp25IeYeMqTGneXChERR1ZoUj6Hagkdvbt7JkjAPAPx42sO1Jgp X-Received: by 2002:a62:384a:: with SMTP id f71-v6mr22454298pfa.48.1536568589790; Mon, 10 Sep 2018 01:36:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536568589; cv=none; d=google.com; s=arc-20160816; b=sCp0tZy/n9oMy+QB3IDGO0GjG6SYTecNNWaBXk443eeRYOhg/i+rWIozK+LzFvTMaK KRkItdJJX4UL1nD1bl2zguT4IjC/FiJAsq4eyhIVKL1hEr2Qv+dxx1sjPrA50LNEUV5m jBQ4mkx2ur0sZqIRDEUeWFWkpZGsZmNWDDZvE354v037vS6RrkMX35fekGN1Z+qBXPyz cCu7GwBDfJOTD2Syu3JLYvGItXvcZM/zkv7T4bJ0WNjq+hPCagJMuu/OtYeyBS9835Tr d7B6qJoadYrjVMq1RNXWJNC9O+Ke4/CzPArYNK9BsCRiTICFyIkGsod4fExHpV/dbG7o wN3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=2imotxZdPFkL3+6XWsCOvAWbbOuT1/DiEP8fjBeAyEI=; b=LoY6ZvFY6jPo9rLJIh39zhhHUssA9s0HJDFsTxw01s34uk2Q9vKzWWTHK1GMY0qOlP tWqedvZC7f07MDLVT/s0aFwH86K4NszCHVV4KGRP4YB0B+L5UfKB7EUjXiBI8/af4Vhf UvBDXOID//svMbsnjyl90u+7aI6vkNzyrJ8HVo5Tx6shrw8tMOpgfvcBV8FdivC8C5f3 R/mcUQXZAT5GM1wAv5Cpmshf3bYSwfyThSa1vDvUoq/UIvVn5X2aqIIQoKWJudWrUyAa J4c3/jXqOf+oSM9oxpdHB6Gk50J3VDTmDvJ9jb3sgpB3zPsWBz1/MYThMlEiUOc1+U6p IX0g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y1-v6si16913985pgf.146.2018.09.10.01.36.14; Mon, 10 Sep 2018 01:36:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727998AbeIJN2A (ORCPT + 99 others); Mon, 10 Sep 2018 09:28:00 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:48138 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727488AbeIJN17 (ORCPT ); Mon, 10 Sep 2018 09:27:59 -0400 Received: from localhost (ip-213-127-74-90.ip.prioritytelecom.net [213.127.74.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 885D3D2A; Mon, 10 Sep 2018 08:35:04 +0000 (UTC) Date: Mon, 10 Sep 2018 10:35:02 +0200 From: Greg KH To: Ray Clinton Cc: abbotti@mev.co.uk, hsweeten@visionengravers.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/4] staging: comedi: Correct multiline dereference as per TODO Message-ID: <20180910083502.GB29149@kroah.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 30, 2018 at 01:32:17PM -0400, Ray Clinton wrote: > Using checkpatch.pl I was able to find a multiline dereference which goes > again the coding style for the kernel. I'm still working on my email client so > the indentation looks bad here (in gmail) but the arguments for > comedi_check_trigger_arg_min should go just under the opening ( > > Signed-off-by: Ray Clinton > --- > drivers/staging/comedi/drivers/ni_labpc_common.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/staging/comedi/drivers/ni_labpc_common.c > b/drivers/staging/comedi/drivers/ni_labpc_common.c > index 7fa2d39..0fad809 100644 > --- a/drivers/staging/comedi/drivers/ni_labpc_common.c > +++ b/drivers/staging/comedi/drivers/ni_labpc_common.c > @@ -560,10 +560,10 @@ static int labpc_ai_cmdtest(struct comedi_device *dev, > /* make sure scan timing is not too fast */ > if (cmd->scan_begin_src == TRIG_TIMER) { > if (cmd->convert_src == TRIG_TIMER) { > - err |= comedi_check_trigger_arg_min(&cmd-> > - scan_begin_arg, > - cmd->convert_arg * > - cmd->chanlist_len); > + err |= comedi_check_trigger_arg_min( > + &cmd->scan_begin_arg, > + cmd->convert_arg * > + cmd->chanlist_len); Ick, this is still messy, just try making this: err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, cmd->convert_arg * cmd->chanlist_len); Yeah, it's over 80 columns, but it looks better and is easier to read, right? Also, all your patches have the whitespace turned from tabs into spaces, making them impossible to be applied even if I wanted to :) thanks, greg k-h