Commit ad7c3c0c authored by Paul Menzel's avatar Paul Menzel Committed by Martin K. Petersen
Browse files

scsi: mpt3sas: Set ioc->manu_pg11.EEDPTagMode directly to 1



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: f92363d1 ("[SCSI] mpt3sas: add new driver supporting 12GB SAS")
Signed-off-by: default avatarPaul Menzel <pmenzel@molgen.mpg.de>
Link: https://lore.kernel.org/r/20241212221817.78940-2-pmenzel@molgen.mpg.de


Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 09ecc187
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment