]> Pileus Git - ~andy/linux/blobdiff - drivers/scsi/esp_scsi.h
[SCSI] FlashPoint: fix off-by-one errors
[~andy/linux] / drivers / scsi / esp_scsi.h
index 8d4a6690401f9bd11dbf23296f4ed6fb8a072246..9367a88d39746f5d3c9ec99477118a5dc6d5ee14 100644 (file)
@@ -240,9 +240,9 @@ struct esp_cmd_priv {
                int             num_sg;
        } u;
 
-       unsigned int            cur_residue;
+       int                     cur_residue;
        struct scatterlist      *cur_sg;
-       unsigned int            tot_residue;
+       int                     tot_residue;
 };
 #define ESP_CMD_PRIV(CMD)      ((struct esp_cmd_priv *)(&(CMD)->SCp))
 
@@ -517,8 +517,6 @@ struct esp {
        struct sbus_dma         *dma;
 };
 
-#define host_to_esp(host)      ((struct esp *)(host)->hostdata)
-
 /* A front-end driver for the ESP chip should do the following in
  * it's device probe routine:
  * 1) Allocate the host and private area using scsi_host_alloc()