aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/message/fusion/mptspi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/message/fusion/mptspi.c')
-rw-r--r--drivers/message/fusion/mptspi.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/message/fusion/mptspi.c b/drivers/message/fusion/mptspi.c
index 49d11338294b..787933d43d32 100644
--- a/drivers/message/fusion/mptspi.c
+++ b/drivers/message/fusion/mptspi.c
@@ -461,8 +461,7 @@ static int mptspi_target_alloc(struct scsi_target *starget)
461static void 461static void
462mptspi_target_destroy(struct scsi_target *starget) 462mptspi_target_destroy(struct scsi_target *starget)
463{ 463{
464 if (starget->hostdata) 464 kfree(starget->hostdata);
465 kfree(starget->hostdata);
466 starget->hostdata = NULL; 465 starget->hostdata = NULL;
467} 466}
468 467
@@ -620,7 +619,7 @@ static void mptspi_read_parameters(struct scsi_target *starget)
620 spi_width(starget) = (nego & MPI_SCSIDEVPAGE0_NP_WIDE) ? 1 : 0; 619 spi_width(starget) = (nego & MPI_SCSIDEVPAGE0_NP_WIDE) ? 1 : 0;
621} 620}
622 621
623int 622static int
624mptscsih_quiesce_raid(MPT_SCSI_HOST *hd, int quiesce, u8 channel, u8 id) 623mptscsih_quiesce_raid(MPT_SCSI_HOST *hd, int quiesce, u8 channel, u8 id)
625{ 624{
626 MPT_ADAPTER *ioc = hd->ioc; 625 MPT_ADAPTER *ioc = hd->ioc;