[SCSI] mpt2sas: Fix linux driver sparse errors
Fix several endian issues found by runing sparse. Signed-off-by: Nagalakshmi Nandigama <nagalakshmi.nandigama@lsi.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
This commit is contained in:
committed by
James Bottomley
parent
298c794def
commit
d838c36cb7
@@ -4160,7 +4160,8 @@ _base_make_ioc_operational(struct MPT2SAS_ADAPTER *ioc, int sleep_flag)
|
||||
if (ioc->is_driver_loading) {
|
||||
if (ioc->is_warpdrive && ioc->manu_pg10.OEMIdentifier
|
||||
== 0x80) {
|
||||
hide_flag = (u8) (ioc->manu_pg10.OEMSpecificFlags0 &
|
||||
hide_flag = (u8) (
|
||||
le32_to_cpu(ioc->manu_pg10.OEMSpecificFlags0) &
|
||||
MFG_PAGE10_HIDE_SSDS_MASK);
|
||||
if (hide_flag != MFG_PAGE10_HIDE_SSDS_MASK)
|
||||
ioc->mfg_pg10_hide_flag = hide_flag;
|
||||
|
Reference in New Issue
Block a user