浏览代码

[SCSI] aic7xxx: remove inquiry sniffing leftovers

Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Christoph Hellwig 20 年之前
父节点
当前提交
0bdcd78ea2
共有 2 个文件被更改,包括 0 次插入8 次删除
  1. 0 2
      drivers/scsi/aic7xxx/aic7xxx_osm.c
  2. 0 6
      drivers/scsi/aic7xxx/aic7xxx_osm.h

+ 0 - 2
drivers/scsi/aic7xxx/aic7xxx_osm.c

@@ -2335,8 +2335,6 @@ ahc_linux_free_target(struct ahc_softc *ahc, struct ahc_linux_target *targ)
 		      AHC_TRANS_GOAL, /*paused*/FALSE);
 		      AHC_TRANS_GOAL, /*paused*/FALSE);
 	ahc_update_neg_request(ahc, &devinfo, tstate, tinfo, AHC_NEG_ALWAYS);
 	ahc_update_neg_request(ahc, &devinfo, tstate, tinfo, AHC_NEG_ALWAYS);
 	ahc->platform_data->targets[target_offset] = NULL;
 	ahc->platform_data->targets[target_offset] = NULL;
-	if (targ->inq_data != NULL)
-		free(targ->inq_data, M_DEVBUF);
 	free(targ, M_DEVBUF);
 	free(targ, M_DEVBUF);
 }
 }
 
 

+ 0 - 6
drivers/scsi/aic7xxx/aic7xxx_osm.h

@@ -423,10 +423,6 @@ struct ahc_linux_device {
 	struct			ahc_linux_target *target;
 	struct			ahc_linux_target *target;
 };
 };
 
 
-typedef enum {
-	AHC_INQ_VALID		 = 0x02,
-} ahc_linux_targ_flags;
-
 struct ahc_linux_target {
 struct ahc_linux_target {
 	struct ahc_linux_device	 *devices[AHC_NUM_LUNS];
 	struct ahc_linux_device	 *devices[AHC_NUM_LUNS];
 	int			  channel;
 	int			  channel;
@@ -434,8 +430,6 @@ struct ahc_linux_target {
 	int			  refcount;
 	int			  refcount;
 	struct ahc_transinfo	  last_tinfo;
 	struct ahc_transinfo	  last_tinfo;
 	struct ahc_softc	 *ahc;
 	struct ahc_softc	 *ahc;
-	ahc_linux_targ_flags	  flags;
-	struct scsi_inquiry_data *inq_data;
 };
 };
 
 
 /********************* Definitions Required by the Core ***********************/
 /********************* Definitions Required by the Core ***********************/