PATCH: fix bogus if in advansys driver

Alan Cox (alan@lxorguk.ukuu.org.uk)
Fri, 21 Mar 2003 19:44:46 GMT


diff -u --new-file --recursive --exclude-from /usr/src/exclude linux-2.5.65/drivers/scsi/advansys.c linux-2.5.65-ac2/drivers/scsi/advansys.c
--- linux-2.5.65/drivers/scsi/advansys.c 2003-03-03 19:20:11.000000000 +0000
+++ linux-2.5.65-ac2/drivers/scsi/advansys.c 2003-03-06 22:05:42.000000000 +0000
@@ -7099,7 +7099,7 @@
* then return the number of underrun bytes.
*/
if (scp->request_bufflen != 0 && qdonep->remain_bytes != 0 &&
- qdonep->remain_bytes <= scp->request_bufflen != 0) {
+ qdonep->remain_bytes <= scp->request_bufflen) {
ASC_DBG1(1, "asc_isr_callback: underrun condition %u bytes\n",
(unsigned) qdonep->remain_bytes);
scp->resid = qdonep->remain_bytes;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/