From patchwork Thu Jan 21 11:40:51 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: George Shore X-Patchwork-Id: 74361 Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id o0LE9YCC019590 for ; Thu, 21 Jan 2010 14:09:34 GMT Received: from localhost ([127.0.0.1] helo=sfs-ml-3.v29.ch3.sourceforge.com) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1NXxj3-0000lm-GW; Thu, 21 Jan 2010 14:09:33 +0000 Received: from sfi-mx-1.v28.ch3.sourceforge.com ([172.29.28.121] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1NXxj3-0000lZ-1e for spi-devel-general@lists.sourceforge.net; Thu, 21 Jan 2010 14:09:33 +0000 X-ACL-Warn: Received: from smtp3.34sp.com ([80.82.115.202]) by sfi-mx-1.v28.ch3.sourceforge.com with esmtp (Exim 4.69) id 1NXxiy-0001oa-B8 for spi-devel-general@lists.sourceforge.net; Thu, 21 Jan 2010 14:09:32 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp3.34sp.com (Postfix) with ESMTP id 2E22B1510018; Thu, 21 Jan 2010 11:41:06 +0000 (GMT) X-Virus-Scanned: amavisd-new at smtp.34sp.com Received: from smtp3.34sp.com ([127.0.0.1]) by localhost (smtp3.34sp.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id F8KaaExayYUf; Thu, 21 Jan 2010 11:41:06 +0000 (GMT) Received: from localhost.localdomain (87-194-181-195.bethere.co.uk [87.194.181.195]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: binarymage) by smtp3.34sp.com (Postfix) with ESMTP id E3C871510005; Thu, 21 Jan 2010 11:41:05 +0000 (GMT) From: George Shore To: spi-devel-list , Grant Likely , David Brownell Date: Thu, 21 Jan 2010 11:40:51 +0000 Message-Id: <1264074052-2214-4-git-send-email-george@georgeshore.com> X-Mailer: git-send-email 1.6.6.264.gd0743 In-Reply-To: <1264074052-2214-1-git-send-email-george@georgeshore.com> References: <1264074052-2214-1-git-send-email-george@georgeshore.com> X-Sender-Verify: failed, postmaster X-Spam-Score: 0.5 (/) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. 0.5 VA_SENDER_VERIFY_POSTMASTER Unable to Verify postmaster@domain.tld X-Headers-End: 1NXxiy-0001oa-B8 Cc: George Shore Subject: [spi-devel-general] [PATCH 4/5] spi/dw_spi.c: remove conditional from 'poll_transfer'. X-BeenThere: spi-devel-general@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: Linux SPI core/device drivers discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: spi-devel-general-bounces@lists.sourceforge.net diff --git a/drivers/spi/dw_spi.c b/drivers/spi/dw_spi.c index 01292da..4f91554 100644 --- a/drivers/spi/dw_spi.c +++ b/drivers/spi/dw_spi.c @@ -408,12 +408,9 @@ static irqreturn_t dw_spi_irq(int irq, void *dev_id) /* Must be called inside pump_transfers() */ static void poll_transfer(struct dw_spi *dws) { - if (dws->tx) { - while (dws->write(dws)) - dws->read(dws); - } + while (dws->write(dws)) + dws->read(dws); - dws->read(dws); transfer_complete(dws); }