aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen M. Cameron <scameron@beardog.cce.hp.com>2014-05-29 11:52:31 -0400
committerChristoph Hellwig <hch@lst.de>2014-06-02 03:54:51 -0400
commit84ce1ee5bf0de5daec3d28d009d74099cee3cf46 (patch)
tree0d0bc7f181bc759c4336531c1b5fa0d0408552fb
parente90b25fa40a43f63fc9a035c11ba9ca3e4e60949 (diff)
hpsa: remove unused fields from struct ctlr_info
The fields "major", "max_outstanding", and "usage_count" of struct ctlr_info were not used for anything. Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com> Reviewed-by: Mike Miller <michael.miller@canonical.com> Reviewed-by: Webb Scales <webb.scales@hp.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
-rw-r--r--drivers/scsi/hpsa.c2
-rw-r--r--drivers/scsi/hpsa.h3
2 files changed, 0 insertions, 5 deletions
diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c
index 5858600bfe59..13c53fa410ea 100644
--- a/drivers/scsi/hpsa.c
+++ b/drivers/scsi/hpsa.c
@@ -5488,8 +5488,6 @@ static void start_io(struct ctlr_info *h)
5488 * condition. 5488 * condition.
5489 */ 5489 */
5490 h->commands_outstanding++; 5490 h->commands_outstanding++;
5491 if (h->commands_outstanding > h->max_outstanding)
5492 h->max_outstanding = h->commands_outstanding;
5493 5491
5494 /* Tell the controller execute command */ 5492 /* Tell the controller execute command */
5495 spin_unlock_irqrestore(&h->lock, flags); 5493 spin_unlock_irqrestore(&h->lock, flags);
diff --git a/drivers/scsi/hpsa.h b/drivers/scsi/hpsa.h
index 1e3cf33a82cf..75414a0ac657 100644
--- a/drivers/scsi/hpsa.h
+++ b/drivers/scsi/hpsa.h
@@ -116,11 +116,8 @@ struct ctlr_info {
116 int nr_cmds; /* Number of commands allowed on this controller */ 116 int nr_cmds; /* Number of commands allowed on this controller */
117 struct CfgTable __iomem *cfgtable; 117 struct CfgTable __iomem *cfgtable;
118 int interrupts_enabled; 118 int interrupts_enabled;
119 int major;
120 int max_commands; 119 int max_commands;
121 int commands_outstanding; 120 int commands_outstanding;
122 int max_outstanding; /* Debug */
123 int usage_count; /* number of opens all all minor devices */
124# define PERF_MODE_INT 0 121# define PERF_MODE_INT 0
125# define DOORBELL_INT 1 122# define DOORBELL_INT 1
126# define SIMPLE_MODE_INT 2 123# define SIMPLE_MODE_INT 2