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

Commit 630ad831 authored by Wayne Boyer's avatar Wayne Boyer Committed by James Bottomley
Browse files

[SCSI] ipr: remove unneeded volatile declarations



This patch removes three volatile declarations based on some feedback and code
analysis.

Signed-off-by: default avatarWayne Boyer <wayneb@linux.vnet.ibm.com>
Acked-by: default avatarBrian King <brking@linux.vnet.ibm.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
parent 0bdccdb0
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -4953,7 +4953,7 @@ static int ipr_eh_abort(struct scsi_cmnd * scsi_cmd)
 * 	IRQ_NONE / IRQ_HANDLED
 * 	IRQ_NONE / IRQ_HANDLED
 **/
 **/
static irqreturn_t ipr_handle_other_interrupt(struct ipr_ioa_cfg *ioa_cfg,
static irqreturn_t ipr_handle_other_interrupt(struct ipr_ioa_cfg *ioa_cfg,
					      volatile u32 int_reg)
					      u32 int_reg)
{
{
	irqreturn_t rc = IRQ_HANDLED;
	irqreturn_t rc = IRQ_HANDLED;


@@ -5016,7 +5016,7 @@ static irqreturn_t ipr_isr(int irq, void *devp)
{
{
	struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)devp;
	struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)devp;
	unsigned long lock_flags = 0;
	unsigned long lock_flags = 0;
	volatile u32 int_reg, int_mask_reg;
	u32 int_reg, int_mask_reg;
	u32 ioasc;
	u32 ioasc;
	u16 cmd_index;
	u16 cmd_index;
	int num_hrrq = 0;
	int num_hrrq = 0;
@@ -7517,7 +7517,7 @@ static int ipr_reset_get_unit_check_job(struct ipr_cmnd *ipr_cmd)
static int ipr_reset_restore_cfg_space(struct ipr_cmnd *ipr_cmd)
static int ipr_reset_restore_cfg_space(struct ipr_cmnd *ipr_cmd)
{
{
	struct ipr_ioa_cfg *ioa_cfg = ipr_cmd->ioa_cfg;
	struct ipr_ioa_cfg *ioa_cfg = ipr_cmd->ioa_cfg;
	volatile u32 int_reg;
	u32 int_reg;


	ENTER;
	ENTER;
	ioa_cfg->pdev->state_saved = true;
	ioa_cfg->pdev->state_saved = true;