Commit 1cdd3cf8 authored by Tomas Henzl's avatar Tomas Henzl Committed by James Bottomley

[SCSI] hpsa: remove unneeded variable

Signed-off-by: default avatarTomas Henzl <thenzl@redhat.com>
Acked-by: default avatarStephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
parent 2cc5bfaf
...@@ -2721,7 +2721,6 @@ static struct CommandList *cmd_alloc(struct ctlr_info *h) ...@@ -2721,7 +2721,6 @@ static struct CommandList *cmd_alloc(struct ctlr_info *h)
} while (test_and_set_bit } while (test_and_set_bit
(i & (BITS_PER_LONG - 1), (i & (BITS_PER_LONG - 1),
h->cmd_pool_bits + (i / BITS_PER_LONG)) != 0); h->cmd_pool_bits + (i / BITS_PER_LONG)) != 0);
h->nr_allocs++;
spin_unlock_irqrestore(&h->lock, flags); spin_unlock_irqrestore(&h->lock, flags);
c = h->cmd_pool + i; c = h->cmd_pool + i;
...@@ -2793,7 +2792,6 @@ static void cmd_free(struct ctlr_info *h, struct CommandList *c) ...@@ -2793,7 +2792,6 @@ static void cmd_free(struct ctlr_info *h, struct CommandList *c)
spin_lock_irqsave(&h->lock, flags); spin_lock_irqsave(&h->lock, flags);
clear_bit(i & (BITS_PER_LONG - 1), clear_bit(i & (BITS_PER_LONG - 1),
h->cmd_pool_bits + (i / BITS_PER_LONG)); h->cmd_pool_bits + (i / BITS_PER_LONG));
h->nr_frees++;
spin_unlock_irqrestore(&h->lock, flags); spin_unlock_irqrestore(&h->lock, flags);
} }
......
...@@ -98,8 +98,6 @@ struct ctlr_info { ...@@ -98,8 +98,6 @@ struct ctlr_info {
struct ErrorInfo *errinfo_pool; struct ErrorInfo *errinfo_pool;
dma_addr_t errinfo_pool_dhandle; dma_addr_t errinfo_pool_dhandle;
unsigned long *cmd_pool_bits; unsigned long *cmd_pool_bits;
int nr_allocs;
int nr_frees;
int scan_finished; int scan_finished;
spinlock_t scan_lock; spinlock_t scan_lock;
wait_queue_head_t scan_wait_queue; wait_queue_head_t scan_wait_queue;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment