mirror of
https://github.com/opnsense/src.git
synced 2026-04-22 06:39:32 -04:00
Fix "set but not used" warnings in the mps driver.
This commit is contained in:
parent
c154feacc4
commit
bcce9c5bed
3 changed files with 0 additions and 7 deletions
|
|
@ -1180,14 +1180,12 @@ static void
|
|||
mpssas_logical_unit_reset_complete(struct mps_softc *sc, struct mps_command *tm)
|
||||
{
|
||||
MPI2_SCSI_TASK_MANAGE_REPLY *reply;
|
||||
MPI2_SCSI_TASK_MANAGE_REQUEST *req;
|
||||
unsigned int cm_count = 0;
|
||||
struct mps_command *cm;
|
||||
struct mpssas_target *targ;
|
||||
|
||||
callout_stop(&tm->cm_callout);
|
||||
|
||||
req = (MPI2_SCSI_TASK_MANAGE_REQUEST *)tm->cm_req;
|
||||
reply = (MPI2_SCSI_TASK_MANAGE_REPLY *)tm->cm_reply;
|
||||
targ = tm->cm_targ;
|
||||
|
||||
|
|
|
|||
|
|
@ -268,9 +268,6 @@ mpssas_fw_work(struct mps_softc *sc, struct mps_fw_event_work *fw_event)
|
|||
}
|
||||
case MPI2_EVENT_SAS_ENCL_DEVICE_STATUS_CHANGE:
|
||||
{
|
||||
Mpi2EventDataSasEnclDevStatusChange_t *data;
|
||||
data = (Mpi2EventDataSasEnclDevStatusChange_t *)
|
||||
fw_event->event_data;
|
||||
mps_mapping_enclosure_dev_status_change_event(sc,
|
||||
fw_event->event_data);
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -519,12 +519,10 @@ mps_print_sgl(struct mps_softc *sc, struct mps_command *cm, int offset)
|
|||
{
|
||||
MPI2_SGE_SIMPLE64 *sge;
|
||||
MPI2_SGE_CHAIN32 *sgc;
|
||||
MPI2_REQUEST_HEADER *req;
|
||||
struct mps_chain *chain = NULL;
|
||||
char *frame;
|
||||
u_int i = 0, flags;
|
||||
|
||||
req = (MPI2_REQUEST_HEADER *)cm->cm_req;
|
||||
frame = (char *)cm->cm_req;
|
||||
sge = (MPI2_SGE_SIMPLE64 *)&frame[offset * 4];
|
||||
printf("SGL for command %p\n", cm);
|
||||
|
|
|
|||
Loading…
Reference in a new issue