]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
scsi: mpt3sas: Set ioc->manu_pg11.EEDPTagMode directly to 1
authorPaul Menzel <pmenzel@molgen.mpg.de>
Thu, 12 Dec 2024 22:18:12 +0000 (23:18 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Mar 2025 11:46:55 +0000 (12:46 +0100)
commit337ec8ca4dba99a1083a31526b3670a2295b82fc
tree95d656ea4bfcb52a7bc4840a883ca70b72c9c6da
parent7a47e14c5fb0b6dba7073be7b0119fb8fe864e01
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: f92363d12359 ("[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>
drivers/scsi/mpt3sas/mpt3sas_base.c