aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/aic7xxx/aic7xxx_osm.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2005-06-10 18:13:30 -0400
committerJames Bottomley <jejb@titanic.(none)>2005-06-11 19:44:12 -0400
commit8eb379425765bfc9a44f06f210224b10066fc46f (patch)
tree267308a971306ca9c510b6ecff410263ae18af9c /drivers/scsi/aic7xxx/aic7xxx_osm.c
parent3d65692aed727c7fb4105f03795781ace437a84e (diff)
[SCSI] aic7xxx: remove some dead wood
especially the now dead scsi_cmnd overlay Signed-off-by: Christoph Hellwig <hch@lst.de> 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.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/drivers/scsi/aic7xxx/aic7xxx_osm.c b/drivers/scsi/aic7xxx/aic7xxx_osm.c
index 34e486aba46b..3287f8df1801 100644
--- a/drivers/scsi/aic7xxx/aic7xxx_osm.c
+++ b/drivers/scsi/aic7xxx/aic7xxx_osm.c
@@ -501,17 +501,6 @@ ahc_linux_detect(struct scsi_host_template *template)
501 int found = 0; 501 int found = 0;
502 502
503 /* 503 /*
504 * Sanity checking of Linux SCSI data structures so
505 * that some of our hacks^H^H^H^H^Hassumptions aren't
506 * violated.
507 */
508 if (offsetof(struct ahc_cmd_internal, end)
509 > offsetof(struct scsi_cmnd, host_scribble)) {
510 printf("ahc_linux_detect: SCSI data structures changed.\n");
511 printf("ahc_linux_detect: Unable to attach\n");
512 return (0);
513 }
514 /*
515 * If we've been passed any parameters, process them now. 504 * If we've been passed any parameters, process them now.
516 */ 505 */
517 if (aic7xxx) 506 if (aic7xxx)
@@ -1587,10 +1576,9 @@ ahc_linux_run_command(struct ahc_softc *ahc, struct ahc_linux_device *dev,
1587 /* 1576 /*
1588 * Get an scb to use. 1577 * Get an scb to use.
1589 */ 1578 */
1590 if ((scb = ahc_get_scb(ahc)) == NULL) { 1579 scb = ahc_get_scb(ahc);
1591 ahc->flags |= AHC_RESOURCE_SHORTAGE; 1580 if (!scb)
1592 return SCSI_MLQUEUE_HOST_BUSY; 1581 return SCSI_MLQUEUE_HOST_BUSY;
1593 }
1594 1582
1595 scb->io_ctx = cmd; 1583 scb->io_ctx = cmd;
1596 scb->platform_data->dev = dev; 1584 scb->platform_data->dev = dev;