Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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: Adam Radford <aradford@gmail.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>

authored by

adam radford and committed by
James Bottomley
5738f996 fd00f7c1

+1 -3
+1 -3
drivers/scsi/megaraid/megaraid_sas_fusion.c
··· 634 634 fusion->reply_frames_desc_phys; 635 635 IOCInitMessage->SystemRequestFrameBaseAddress = 636 636 fusion->io_request_frames_phys; 637 - /* Set to 0 for none or 1 MSI-X vectors */ 638 - IOCInitMessage->HostMSIxVectors = (instance->msix_vectors > 0 ? 639 - instance->msix_vectors : 0); 637 + IOCInitMessage->HostMSIxVectors = instance->msix_vectors; 640 638 init_frame = (struct megasas_init_frame *)cmd->frame; 641 639 memset(init_frame, 0, MEGAMFI_FRAME_SIZE); 642 640