hv:fix violations of coding guideline C-ST-04

The coding guideline rule C-ST-04 requires that
a 'if' statement followed by one or more 'else if'
statement shall be terminated by an 'else' statement
which contains either appropriate action or a comment.

Tracked-On: #6776
Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
Mingqiang Chi
2022-01-26 16:35:45 +08:00
committed by acrnsi-robot
parent b7a99f4530
commit 3d5c3c4754
10 changed files with 50 additions and 23 deletions

View File

@@ -175,6 +175,8 @@ void get_cache_shift(uint32_t *l2_shift, uint32_t *l3_shift)
*l2_shift = shift;
} else if (cache_level == 3U) {
*l3_shift = shift;
} else {
/* this api only for L2 & L3 cache */
}
}
}