patch-2.4.9 linux/drivers/scsi/eata_pio.c
Next file: linux/drivers/scsi/i91uscsi.c
Previous file: linux/drivers/scsi/eata_generic.h
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Wed Aug 15 01:22:16 2001
- Orig file:
v2.4.8/linux/drivers/scsi/eata_pio.c
- Orig date:
Fri Feb 9 11:30:23 2001
diff -u --recursive --new-file v2.4.8/linux/drivers/scsi/eata_pio.c linux/drivers/scsi/eata_pio.c
@@ -161,7 +161,7 @@
IncStat(&cmd->SCp,1);
odd=FALSE;
}
- x=min(z,cmd->SCp.this_residual/2);
+ x=min(unsigned int,z,cmd->SCp.this_residual/2);
insw(base+HA_RDATA,cmd->SCp.ptr,x);
z-=x;
IncStat(&cmd->SCp,2*x);
@@ -191,7 +191,7 @@
z--;
odd=FALSE;
}
- x=min(z,cmd->SCp.this_residual/2);
+ x=min(unsigned int,z,cmd->SCp.this_residual/2);
outsw(base+HA_RDATA,cmd->SCp.ptr,x);
z-=x;
IncStat(&cmd->SCp,2*x);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)