From: Jens Axboe Date: Thu, 16 Sep 2010 06:27:34 +0000 (+0200) Subject: aic7xxx_old: removed unused 'req' variable X-Git-Tag: v2.6.37-rc1~166^2~4 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=8786fb70ccb36c7cff64680bb80c46d3a09d44db;p=~emulex%2Finfiniband.git aic7xxx_old: removed unused 'req' variable After the patch "block: remove spurious uses of REQ_HARDBARRIER", we no longer use 'req' in aic7xxx_buildscb(). Kill it. Reported-by: Stephen Rothwell Signed-off-by: Jens Axboe --- diff --git a/drivers/scsi/aic7xxx_old.c b/drivers/scsi/aic7xxx_old.c index e1cd6062776..aee73fafccc 100644 --- a/drivers/scsi/aic7xxx_old.c +++ b/drivers/scsi/aic7xxx_old.c @@ -10119,7 +10119,6 @@ static void aic7xxx_buildscb(struct aic7xxx_host *p, struct scsi_cmnd *cmd, struct aic_dev_data *aic_dev = cmd->device->hostdata; struct scsi_device *sdptr = cmd->device; unsigned char tindex = TARGET_INDEX(cmd); - struct request *req = cmd->request; int use_sg; mask = (0x01 << tindex);