tx4938ide: Avoid underflow on calculation of a wait cycle
commit7afa05350c42d8427f2d8f6112b64ab0812f3289
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Sun, 2 Nov 2008 20:40:10 +0000 (2 21:40 +0100)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Sun, 2 Nov 2008 20:40:10 +0000 (2 21:40 +0100)
tree07a972ee758fa975dc4f524df6e3f37628938255
parent9d4eb0a33e620a85e36f66cf895d2bea6d556eac
tx4938ide: Avoid underflow on calculation of a wait cycle

Make 'wt' variable signed while it can be negative during calculation.

Suggested-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Cc: sshtylyov@ru.mvista.com
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/tx4938ide.c