Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5738f996 authored by Adam Radford's avatar Adam Radford Committed by James Bottomley
Browse files

[SCSI] megaraid_sas: Optimize HostMSIxVectors setting



The following patch for megaraid_sas removes an incorrect comment and
optimizes the setting of HostMSIxVectors.  This was found during a
code review by Tomas Henzl @ RedHat.

Signed-off-by: default avatarAdam Radford <aradford@gmail.com>
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
parent fd00f7c1
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -634,9 +634,7 @@ megasas_ioc_init_fusion(struct megasas_instance *instance)
		fusion->reply_frames_desc_phys;
	IOCInitMessage->SystemRequestFrameBaseAddress =
		fusion->io_request_frames_phys;
	/* Set to 0 for none or 1 MSI-X vectors */
	IOCInitMessage->HostMSIxVectors = (instance->msix_vectors > 0 ?
					   instance->msix_vectors : 0);
	IOCInitMessage->HostMSIxVectors = instance->msix_vectors;
	init_frame = (struct megasas_init_frame *)cmd->frame;
	memset(init_frame, 0, MEGAMFI_FRAME_SIZE);