mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-11 05:39:45 +00:00
HV: treewide: fix violations of coding guideline C-ST-02
The coding guideline rule C-ST-02 requires that 'the loop body shall be enclosed with brackets', or more specifically, braces. This patch adds braces to the single-line loop bodies. This patch has no semantic change. Tracked-On: #6776 Signed-off-by: Junjie Mao <junjie.mao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -130,8 +130,9 @@ int32_t add_vmsix_capability(struct pci_vdev *vdev, uint32_t entry_num, uint8_t
|
||||
vdev->msix.table_count = entry_num;
|
||||
|
||||
/* set mask bit of vector control register */
|
||||
for (i = 0; i < entry_num; i++)
|
||||
for (i = 0; i < entry_num; i++) {
|
||||
vdev->msix.table_entries[i].vector_control |= PCIM_MSIX_VCTRL_MASK;
|
||||
}
|
||||
|
||||
(void)memset(&msixcap, 0U, sizeof(struct msixcap));
|
||||
|
||||
|
Reference in New Issue
Block a user