From: Atsushi Nemoto Date: Mon, 2 Feb 2009 19:12:23 +0000 (+0100) Subject: tx4939ide: typo fix and minor cleanup X-Git-Tag: 2.1b_release~14170^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9711a53721616b0f4c5f21c5811e5c4ef82be46f;p=platform%2Fkernel%2Fkernel-mfld-blackbay.git tx4939ide: typo fix and minor cleanup The bcount is greater than 0 and less than or equal to 0x10000. Thus '(bcount & 0xffff) == 0x0000' can be simplified as 'bcount == 0x10000'. Suggested-by: Sergei Shtylyov Signed-off-by: Atsushi Nemoto Signed-off-by: Bartlomiej Zolnierkiewicz --- 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 = 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) == 0x0000) + if (bcount == 0x10000) bcount = 0x8000; *table++ = bcount & 0xffff; *table++ = cur_addr;