diff options
author | Amol Lad <amol@verismonetworks.com> | 2006-10-20 17:48:40 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-10-25 18:14:17 -0400 |
commit | 6d07cb71fdacc710fd9816cddb5c2df0f7bd96b4 (patch) | |
tree | 4ed71340e00685e7556580be5b52f218702441d7 /drivers/scsi/aic7xxx/aic7xxx_osm.c | |
parent | 5a09e39810ae0465016c380962e12dd115779b87 (diff) |
[SCSI] drivers/scsi: Handcrafted MIN/MAX macro removal
Cleanups done to use min/max macros from kernel.h. Handcrafted MIN/MAX
macros are changed to use macros in kernel.h
[akpm@osdl.org: fix warning]
Signed-off-by: Amol Lad <amol@verismonetworks.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/aic7xxx/aic7xxx_osm.c')
-rw-r--r-- | drivers/scsi/aic7xxx/aic7xxx_osm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/aic7xxx/aic7xxx_osm.c b/drivers/scsi/aic7xxx/aic7xxx_osm.c index ad8578e95937..8eb1211a7888 100644 --- a/drivers/scsi/aic7xxx/aic7xxx_osm.c +++ b/drivers/scsi/aic7xxx/aic7xxx_osm.c | |||
@@ -1876,9 +1876,9 @@ ahc_linux_handle_scsi_status(struct ahc_softc *ahc, | |||
1876 | if (scb->flags & SCB_SENSE) { | 1876 | if (scb->flags & SCB_SENSE) { |
1877 | u_int sense_size; | 1877 | u_int sense_size; |
1878 | 1878 | ||
1879 | sense_size = MIN(sizeof(struct scsi_sense_data) | 1879 | sense_size = min(sizeof(struct scsi_sense_data) |
1880 | - ahc_get_sense_residual(scb), | 1880 | - ahc_get_sense_residual(scb), |
1881 | sizeof(cmd->sense_buffer)); | 1881 | (u_long)sizeof(cmd->sense_buffer)); |
1882 | memcpy(cmd->sense_buffer, | 1882 | memcpy(cmd->sense_buffer, |
1883 | ahc_get_sense_buf(ahc, scb), sense_size); | 1883 | ahc_get_sense_buf(ahc, scb), sense_size); |
1884 | if (sense_size < sizeof(cmd->sense_buffer)) | 1884 | if (sense_size < sizeof(cmd->sense_buffer)) |