Skip to content

Commit

Permalink
scsi: mpt3sas: Remove unused variable requeue_event
Browse files Browse the repository at this point in the history
No Functional change just cleanup. Removed variable requeue_event and
made function as void.

Signed-off-by: Suganath Prabu S <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
  • Loading branch information
suganathprabu0512 authored and martinkpetersen committed Dec 5, 2017
1 parent 13a0640 commit 45b7aef
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions drivers/scsi/mpt3sas/mpt3sas_scsih.c
Original file line number Diff line number Diff line change
Expand Up @@ -7211,7 +7211,7 @@ _scsih_pcie_topology_change_event_debug(struct MPT3SAS_ADAPTER *ioc,
* Context: user.
*
*/
static int
static void
_scsih_pcie_topology_change_event(struct MPT3SAS_ADAPTER *ioc,
struct fw_event_work *fw_event)
{
Expand All @@ -7221,7 +7221,6 @@ _scsih_pcie_topology_change_event(struct MPT3SAS_ADAPTER *ioc,
u8 link_rate, prev_link_rate;
unsigned long flags;
int rc;
int requeue_event;
Mpi26EventDataPCIeTopologyChangeList_t *event_data =
(Mpi26EventDataPCIeTopologyChangeList_t *) fw_event->event_data;
struct _pcie_device *pcie_device;
Expand All @@ -7231,23 +7230,23 @@ _scsih_pcie_topology_change_event(struct MPT3SAS_ADAPTER *ioc,

if (ioc->shost_recovery || ioc->remove_host ||
ioc->pci_error_recovery)
return 0;
return;

if (fw_event->ignore) {
dewtprintk(ioc, pr_info(MPT3SAS_FMT "ignoring switch event\n",
ioc->name));
return 0;
return;
}

/* handle siblings events */
for (i = 0; i < event_data->NumEntries; i++) {
if (fw_event->ignore) {
dewtprintk(ioc, pr_info(MPT3SAS_FMT
"ignoring switch event\n", ioc->name));
return 0;
return;
}
if (ioc->remove_host || ioc->pci_error_recovery)
return 0;
return;
reason_code = event_data->PortEntry[i].PortStatus;
handle =
le16_to_cpu(event_data->PortEntry[i].AttachedDevHandle);
Expand Down Expand Up @@ -7316,7 +7315,6 @@ _scsih_pcie_topology_change_event(struct MPT3SAS_ADAPTER *ioc,
break;
}
}
return requeue_event;
}

/**
Expand Down

0 comments on commit 45b7aef

Please sign in to comment.