diff options
Diffstat (limited to 'drivers/scsi/csiostor/csio_hw.c')
-rw-r--r-- | drivers/scsi/csiostor/csio_hw.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/scsi/csiostor/csio_hw.c b/drivers/scsi/csiostor/csio_hw.c index c81b06bcf827..2e66f34ebb79 100644 --- a/drivers/scsi/csiostor/csio_hw.c +++ b/drivers/scsi/csiostor/csio_hw.c | |||
@@ -1372,7 +1372,8 @@ csio_config_device_caps(struct csio_hw *hw) | |||
1372 | } | 1372 | } |
1373 | 1373 | ||
1374 | /* Validate device capabilities */ | 1374 | /* Validate device capabilities */ |
1375 | if (csio_hw_validate_caps(hw, mbp)) | 1375 | rv = csio_hw_validate_caps(hw, mbp); |
1376 | if (rv != 0) | ||
1376 | goto out; | 1377 | goto out; |
1377 | 1378 | ||
1378 | /* Don't config device capabilities if already configured */ | 1379 | /* Don't config device capabilities if already configured */ |
@@ -1776,7 +1777,8 @@ csio_hw_use_fwconfig(struct csio_hw *hw, int reset, u32 *fw_cfg_param) | |||
1776 | } | 1777 | } |
1777 | 1778 | ||
1778 | /* Validate device capabilities */ | 1779 | /* Validate device capabilities */ |
1779 | if (csio_hw_validate_caps(hw, mbp)) | 1780 | rv = csio_hw_validate_caps(hw, mbp); |
1781 | if (rv != 0) | ||
1780 | goto bye; | 1782 | goto bye; |
1781 | /* | 1783 | /* |
1782 | * Note that we're operating with parameters | 1784 | * Note that we're operating with parameters |