[SCSI] sym53c8xx: fix resid calculation
authorTony Battersby <tonyb@cybernetics.com>
Tue, 6 Nov 2007 21:07:04 +0000 (16:07 -0500)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Fri, 8 Feb 2008 00:02:34 +0000 (18:02 -0600)
commit3dfcb701e1ff7aa21d6623e46b6ec3f7d0d306e1
tree7ae253a2611085eb01d62439f881f798beaf31b1
parent51883b5e60796cce556370dbc368fd22c60c0e3e
[SCSI] sym53c8xx: fix resid calculation

This patch fixes the calculation of the data transfer residual for the
case of a command that is supposed to transfer an odd number of bytes on
a wide bus but transfers nothing instead.

Signed-off-by: Tony Battersby <tonyb@cybernetics.com>
Cc: Matthew Wilcox <matthew@wil.cx>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/sym53c8xx_2/sym_hipd.c