diff options
author | Kashyap, Desai <kashyap.desai@lsi.com> | 2009-12-16 08:32:59 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-01-18 11:48:12 -0500 |
commit | de81562f2f9852a1f2c609ede1e26c07ed457c60 (patch) | |
tree | fdc263e809f806bd8914c3c18209b9be65fb47d5 /drivers/message | |
parent | 64e155adc250ab68255b761c1faa77799aa1e41a (diff) |
[SCSI] mptfusion: corrected if condition check for SCSIIO and PASSTHROUGH commands
Modified the function type check to verify it is not
MPI_FUNCTION_RAID_SCSI_IO_PASSTHROUGH or MPI_FUNCTION_SCSI_IO_REQUEST.
Signed-off-by: Kashyap Desai <kashyap.desai@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/message')
-rw-r--r-- | drivers/message/fusion/mptctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/message/fusion/mptctl.c b/drivers/message/fusion/mptctl.c index 352acd05c46..caa8f568a41 100644 --- a/drivers/message/fusion/mptctl.c +++ b/drivers/message/fusion/mptctl.c | |||
@@ -360,8 +360,8 @@ static int mptctl_bus_reset(MPT_ADAPTER *ioc, u8 function) | |||
360 | u16 iocstatus; | 360 | u16 iocstatus; |
361 | 361 | ||
362 | /* bus reset is only good for SCSI IO, RAID PASSTHRU */ | 362 | /* bus reset is only good for SCSI IO, RAID PASSTHRU */ |
363 | if (!(function == MPI_FUNCTION_RAID_SCSI_IO_PASSTHROUGH) || | 363 | if (!(function == MPI_FUNCTION_RAID_SCSI_IO_PASSTHROUGH || |
364 | (function == MPI_FUNCTION_SCSI_IO_REQUEST)) { | 364 | function == MPI_FUNCTION_SCSI_IO_REQUEST)) { |
365 | dtmprintk(ioc, printk(MYIOC_s_WARN_FMT | 365 | dtmprintk(ioc, printk(MYIOC_s_WARN_FMT |
366 | "TaskMgmt, not SCSI_IO!!\n", ioc->name)); | 366 | "TaskMgmt, not SCSI_IO!!\n", ioc->name)); |
367 | return -EPERM; | 367 | return -EPERM; |