Browse Source

mtip32xx: Clean up unused variables

Remove variables that are set but never used.

Signed-off-by: Christos Gkekas <chris.gekas@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Christos Gkekas 7 years ago
parent
commit
47bc227dee
1 changed files with 0 additions and 7 deletions
  1. 0 7
      drivers/block/mtip32xx/mtip32xx.c

+ 0 - 7
drivers/block/mtip32xx/mtip32xx.c

@@ -887,12 +887,9 @@ static void mtip_issue_non_ncq_command(struct mtip_port *port, int tag)
 static bool mtip_pause_ncq(struct mtip_port *port,
 static bool mtip_pause_ncq(struct mtip_port *port,
 				struct host_to_dev_fis *fis)
 				struct host_to_dev_fis *fis)
 {
 {
-	struct host_to_dev_fis *reply;
 	unsigned long task_file_data;
 	unsigned long task_file_data;
 
 
-	reply = port->rxfis + RX_FIS_D2H_REG;
 	task_file_data = readl(port->mmio+PORT_TFDATA);
 	task_file_data = readl(port->mmio+PORT_TFDATA);
-
 	if ((task_file_data & 1))
 	if ((task_file_data & 1))
 		return false;
 		return false;
 
 
@@ -1020,7 +1017,6 @@ static int mtip_exec_internal_command(struct mtip_port *port,
 		.opts = opts
 		.opts = opts
 	};
 	};
 	int rv = 0;
 	int rv = 0;
-	unsigned long start;
 
 
 	/* Make sure the buffer is 8 byte aligned. This is asic specific. */
 	/* Make sure the buffer is 8 byte aligned. This is asic specific. */
 	if (buffer & 0x00000007) {
 	if (buffer & 0x00000007) {
@@ -1057,7 +1053,6 @@ static int mtip_exec_internal_command(struct mtip_port *port,
 	/* Copy the command to the command table */
 	/* Copy the command to the command table */
 	memcpy(int_cmd->command, fis, fis_len*4);
 	memcpy(int_cmd->command, fis, fis_len*4);
 
 
-	start = jiffies;
 	rq->timeout = timeout;
 	rq->timeout = timeout;
 
 
 	/* insert request and run queue */
 	/* insert request and run queue */
@@ -3015,7 +3010,6 @@ static int mtip_hw_init(struct driver_data *dd)
 {
 {
 	int i;
 	int i;
 	int rv;
 	int rv;
-	unsigned int num_command_slots;
 	unsigned long timeout, timetaken;
 	unsigned long timeout, timetaken;
 
 
 	dd->mmio = pcim_iomap_table(dd->pdev)[MTIP_ABAR];
 	dd->mmio = pcim_iomap_table(dd->pdev)[MTIP_ABAR];
@@ -3025,7 +3019,6 @@ static int mtip_hw_init(struct driver_data *dd)
 		rv = -EIO;
 		rv = -EIO;
 		goto out1;
 		goto out1;
 	}
 	}
-	num_command_slots = dd->slot_groups * 32;
 
 
 	hba_setup(dd);
 	hba_setup(dd);