public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andy Whitcroft <apw@shadowen.org>
To: Shannon Nelson <shannon.nelson@intel.com>
Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH -mm] [RFC] IOAT: Add support for version 2 of ioatdma device
Date: Fri, 7 Sep 2007 09:43:22 +0100	[thread overview]
Message-ID: <20070907084322.GA10837@shadowen.org> (raw)
In-Reply-To: <20070906170712.7444.34573.stgit@localhost.localdomain>

On Thu, Sep 06, 2007 at 10:07:12AM -0700, Shannon Nelson wrote:
>  	list_for_each_entry(iter, &desc->async_tx.tx_list, node) {
>  		iter->hw->src_addr = addr;
>  		addr += ioat_chan->xfercap;
> +
> +		if (--cnt == 0);
> +			break;
>  	}
>  
>  }
> @@ -166,20 +177,28 @@ static void ioat_set_dest(dma_addr_t addr,
>  {
>  	struct ioat_desc_sw *iter, *desc = tx_to_ioat_desc(tx);
>  	struct ioat_dma_chan *ioat_chan = to_ioat_chan(tx->chan);
> +	int cnt = desc->tx_cnt;
>  
>  	pci_unmap_addr_set(desc, dst, addr);
>  
>  	list_for_each_entry(iter, &desc->async_tx.tx_list, node) {
>  		iter->hw->dst_addr = addr;
>  		addr += ioat_chan->xfercap;
> +
> +		if (--cnt == 0);
> +			break;
>  	}

Those two look suspect to checkpatch, and I have to agree with it.

WARNING: Trailing semicolon indicates no statements, indent implies
otherwise
#346: FILE: drivers/dma/ioat_dma.c:168:
+               if (--cnt == 0);
+                       break;
WARNING: Trailing semicolon indicates no statements, indent implies
otherwise
#363: FILE: drivers/dma/ioat_dma.c:188:
+               if (--cnt == 0);
+                       break;

-apw

  reply	other threads:[~2007-09-07  8:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-06 17:07 [PATCH -mm] [RFC] IOAT: Add support for version 2 of ioatdma device Shannon Nelson
2007-09-07  8:43 ` Andy Whitcroft [this message]
2007-09-07 15:11   ` Nelson, Shannon

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=20070907084322.GA10837@shadowen.org \
    --to=apw@shadowen.org \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=shannon.nelson@intel.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