scsi: mpt3sas: Set ioc->manu_pg11.EEDPTagMode directly to 1
[ Upstream commit ad7c3c0cb8f61d6d5a48b83e62ca4a9fd2f26153 ]
Currently, the code does:
if (x == 0) {
x &= ~0x3;
x |= 0x1;
}
Zeroing bits 0 and 1 of a variable that is 0 is not necessary. So directly
set the variable to 1.
Cc: Sreekanth Reddy <sreekanth.reddy@broadcom.com>
Fixes: f92363d123 ("[SCSI] mpt3sas: add new driver supporting 12GB SAS")
Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de>
Link: https://lore.kernel.org/r/20241212221817.78940-2-pmenzel@molgen.mpg.de
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
c994716d33
commit
495dcb00d4
@@ -5638,8 +5638,7 @@ _base_static_config_pages(struct MPT3SAS_ADAPTER *ioc)
|
|||||||
if (!ioc->is_gen35_ioc && ioc->manu_pg11.EEDPTagMode == 0) {
|
if (!ioc->is_gen35_ioc && ioc->manu_pg11.EEDPTagMode == 0) {
|
||||||
pr_err("%s: overriding NVDATA EEDPTagMode setting\n",
|
pr_err("%s: overriding NVDATA EEDPTagMode setting\n",
|
||||||
ioc->name);
|
ioc->name);
|
||||||
ioc->manu_pg11.EEDPTagMode &= ~0x3;
|
ioc->manu_pg11.EEDPTagMode = 0x1;
|
||||||
ioc->manu_pg11.EEDPTagMode |= 0x1;
|
|
||||||
mpt3sas_config_set_manufacturing_pg11(ioc, &mpi_reply,
|
mpt3sas_config_set_manufacturing_pg11(ioc, &mpi_reply,
|
||||||
&ioc->manu_pg11);
|
&ioc->manu_pg11);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user