Received: from mail.onstor.com (66.201.51.107) by exch1.onstor.net
 (10.0.0.225) with Microsoft SMTP Server id 8.1.311.2; Mon, 19 Jan 2009
 06:11:13 -0800
Received: from chiesmta2-1.messageone.com ([216.203.30.55]) by mail.onstor.com
 with Microsoft SMTPSVC(6.0.3790.3959);	 Mon, 19 Jan 2009 06:11:12 -0800
Received: from ftp.linux-mips.org (ftp.linux-mips.org [213.58.128.207])	by
 chiesmta2-1.messageone.com (8.13.8/8.13.8) with ESMTP id n0JEBFH4009251	for
 <andy.sharp@onstor.com>; Mon, 19 Jan 2009 08:11:15 -0600
Received: from localhost.localdomain ([127.0.0.1]:47844 "EHLO
	ftp.linux-mips.org") by ftp.linux-mips.org with ESMTP	id S21366095AbZASOKo
 (ORCPT <rfc822;andy.sharp@onstor.com>);	Mon, 19 Jan 2009 14:10:44 +0000
Received: with ECARTIS (v1.0.0; list linux-mips); Mon, 19 Jan 2009 14:10:28
 +0000 (GMT)
Received: from mba.ocn.ne.jp ([122.1.235.107]:48363 "HELO smtp.mba.ocn.ne.jp")
	by ftp.linux-mips.org with SMTP id S21366094AbZASOKZ (ORCPT
	<rfc822;linux-mips@linux-mips.org>); Mon, 19 Jan 2009 14:10:25 +0000
Received: from localhost.localdomain (p1127-ipad204funabasi.chiba.ocn.ne.jp
 [222.146.88.127])	by smtp.mba.ocn.ne.jp (Postfix) with ESMTP	id 3ED37A47B;
 Mon, 19 Jan 2009 23:10:20 +0900 (JST)
From: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
To: "linux-ide@vger.kernel.org" <linux-ide@vger.kernel.org>
CC: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>, "sshtylyov@ru.mvista.com"
	<sshtylyov@ru.mvista.com>, "linux-mips@linux-mips.org"
	<linux-mips@linux-mips.org>
Sender: "linux-mips-bounce@linux-mips.org" <linux-mips-bounce@linux-mips.org>
Date: Mon, 19 Jan 2009 06:10:25 -0800
Subject: [PATCH] tx4939ide: typo fix and minor cleanup
Thread-Topic: [PATCH] tx4939ide: typo fix and minor cleanup
Thread-Index: Acl6P8lckIyI0S4nQwOwy5DidupnjQ==
Message-ID: <1232374225-5325-1-git-send-email-anemo@mba.ocn.ne.jp>
Accept-Language: en-US
Content-Language: en-US
X-MS-Exchange-Organization-AuthAs: Internal
X-MS-Exchange-Organization-AuthMechanism: 0b
X-MS-Exchange-Organization-AuthSource: exch1.onstor.net
X-MS-Has-Attach:
X-Auto-Response-Suppress: All
X-MS-TNEF-Correlator:
x-originalarrivaltime: 19 Jan 2009 14:11:12.0721 (UTC)
 FILETIME=[C8CD8410:01C97A3F]
errors-to: linux-mips-bounce@linux-mips.org
x-ems-proccessed: 2K3Xl1OQTInXD6xxuA8z3Q==
x-ems-stamp: reYrVNdKHgI9+xhNZxQ6ww==
x-messageone-virus-version: vendor=fsecure
 engine=4.65.7400:2.4.4,1.2.40,4.0.164
 definitions=2009-01-19_07:2009-01-18,2009-01-19,2009-01-19 signatures=0
x-messageone-virus-scanned: Clean
x-messageone-envelope-sender: linux-mips-bounce@linux-mips.org
x-messageone-spam-details: rule=m773emszm_notspam policy=m773emszm score=0
 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam
 adjust=0 reason=mlx engine=3.1.0-0810130000 definitions=main-0901190051
x-messageone-spam-score: 0
x-messageone-spam-bar:
x-list: linux-mips
x-archive-position: 21776
x-ecartis-version: Ecartis v1.0.0
x-original-sender: anemo@mba.ocn.ne.jp
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0

The bcount is greater than 0 and less than or equal to 0x10000.
Thus '(bcount & 0xffff) =3D=3D 0x0000' can be simplified as 'bcount =3D=3D =
0x10000'.

Suggested-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
---
 drivers/ide/tx4939ide.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/ide/tx4939ide.c b/drivers/ide/tx4939ide.c
index 882f6f0..40b0812 100644
--- a/drivers/ide/tx4939ide.c
+++ b/drivers/ide/tx4939ide.c
@@ -261,9 +261,9 @@ static int tx4939ide_build_dmatable(ide_drive_t *drive,=
 struct request *rq)
 				bcount =3D cur_len;
 			/*
 			 * This workaround for zero count seems required.
-			 * (standard ide_build_dmatable do it too)
+			 * (standard ide_build_dmatable does it too)
 			 */
-			if ((bcount & 0xffff) =3D=3D 0x0000)
+			if (bcount =3D=3D 0x10000)
 				bcount =3D 0x8000;
 			*table++ =3D bcount & 0xffff;
 			*table++ =3D cur_addr;
--=20
1.5.6.3


