Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 84ce1ee5 authored by Stephen M. Cameron's avatar Stephen M. Cameron Committed by Christoph Hellwig
Browse files

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: default avatarStephen M. Cameron <scameron@beardog.cce.hp.com>
Reviewed-by: default avatarMike Miller <michael.miller@canonical.com>
Reviewed-by: default avatarWebb Scales <webb.scales@hp.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent e90b25fa
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -5488,8 +5488,6 @@ static void start_io(struct ctlr_info *h)
		 * condition.
		 * condition.
		 */
		 */
		h->commands_outstanding++;
		h->commands_outstanding++;
		if (h->commands_outstanding > h->max_outstanding)
			h->max_outstanding = h->commands_outstanding;


		/* Tell the controller execute command */
		/* Tell the controller execute command */
		spin_unlock_irqrestore(&h->lock, flags);
		spin_unlock_irqrestore(&h->lock, flags);
+0 −3
Original line number Original line Diff line number Diff line
@@ -116,11 +116,8 @@ struct ctlr_info {
	int 	nr_cmds; /* Number of commands allowed on this controller */
	int 	nr_cmds; /* Number of commands allowed on this controller */
	struct CfgTable __iomem *cfgtable;
	struct CfgTable __iomem *cfgtable;
	int	interrupts_enabled;
	int	interrupts_enabled;
	int	major;
	int 	max_commands;
	int 	max_commands;
	int	commands_outstanding;
	int	commands_outstanding;
	int 	max_outstanding; /* Debug */
	int	usage_count;  /* number of opens all all minor devices */
#	define PERF_MODE_INT	0
#	define PERF_MODE_INT	0
#	define DOORBELL_INT	1
#	define DOORBELL_INT	1
#	define SIMPLE_MODE_INT	2
#	define SIMPLE_MODE_INT	2