mtip32xx: remove unused variable 'port->allocated'
authorAsai Thambi SP <asamymuthupa@micron.com>
Mon, 11 May 2015 22:49:28 +0000 (15:49 -0700)
committerJens Axboe <axboe@fb.com>
Tue, 16 Jun 2015 14:24:44 +0000 (08:24 -0600)
Remove unused variable 'port->allocated'

Signed-off-by: Selvan Mani <smani@micron.com>
Signed-off-by: Asai Thambi S P <asamymuthupa@micron.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/mtip32xx/mtip32xx.c
drivers/block/mtip32xx/mtip32xx.h

index b79b59a..0dd5d76 100644 (file)
@@ -623,8 +623,7 @@ static void mtip_handle_tfe(struct driver_data *dd)
 
        set_bit(MTIP_PF_EH_ACTIVE_BIT, &port->flags);
 
-       if (test_bit(MTIP_PF_IC_ACTIVE_BIT, &port->flags) &&
-                       test_bit(MTIP_TAG_INTERNAL, port->allocated)) {
+       if (test_bit(MTIP_PF_IC_ACTIVE_BIT, &port->flags)) {
                cmd = mtip_cmd_from_tag(dd, MTIP_TAG_INTERNAL);
                dbg_printk(MTIP_DRV_NAME " TFE for the internal command\n");
 
@@ -2625,18 +2624,6 @@ static ssize_t mtip_hw_read_registers(struct file *f, char __user *ubuf,
                                readl(dd->mmio + HOST_IRQ_STAT));
        size += sprintf(&buf[size], "\n");
 
-       size += sprintf(&buf[size], "L/ Allocated     : [ 0x");
-
-       for (n = dd->slot_groups-1; n >= 0; n--) {
-               if (sizeof(long) > sizeof(u32))
-                       group_allocated =
-                               dd->port->allocated[n/2] >> (32*(n&1));
-               else
-                       group_allocated = dd->port->allocated[n];
-               size += sprintf(&buf[size], "%08X ", group_allocated);
-       }
-       size += sprintf(&buf[size], "]\n");
-
        size += sprintf(&buf[size], "L/ Commands in Q : [ 0x");
 
        for (n = dd->slot_groups-1; n >= 0; n--) {
index ba1b31e..d7a5459 100644 (file)
@@ -412,19 +412,13 @@ struct mtip_port {
         * by the DMA when the driver issues internal commands.
         */
        dma_addr_t sector_buffer_dma;
-       /*
-        * Bit significant, used to determine if a command slot has
-        * been allocated. i.e. the slot is in use.  Bits are cleared
-        * when the command slot and all associated data structures
-        * are no longer needed.
-        */
+
        u16 *log_buf;
        dma_addr_t log_buf_dma;
 
        u8 *smart_buf;
        dma_addr_t smart_buf_dma;
 
-       unsigned long allocated[SLOTBITS_IN_LONGS];
        /*
         * used to queue commands when an internal command is in progress
         * or error handling is active