diff options
author | James Morris <james.l.morris@oracle.com> | 2014-11-19 05:32:12 -0500 |
---|---|---|
committer | James Morris <james.l.morris@oracle.com> | 2014-11-19 05:32:12 -0500 |
commit | b10778a00d40b3d9fdaaf5891e802794781ff71c (patch) | |
tree | 6ba4cbac86eecedc3f30650e7f764ecf00c83898 /drivers/message/fusion/mptspi.c | |
parent | 594081ee7145cc30a3977cb4e218f81213b63dc5 (diff) | |
parent | bfe01a5ba2490f299e1d2d5508cbbbadd897bbe9 (diff) |
Merge commit 'v3.17' into next
Diffstat (limited to 'drivers/message/fusion/mptspi.c')
-rw-r--r-- | drivers/message/fusion/mptspi.c | 5 |
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) | |||
461 | static void | 461 | static void |
462 | mptspi_target_destroy(struct scsi_target *starget) | 462 | mptspi_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 | ||
623 | int | 622 | static int |
624 | mptscsih_quiesce_raid(MPT_SCSI_HOST *hd, int quiesce, u8 channel, u8 id) | 623 | mptscsih_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; |