mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-09 02:24:45 +00:00
HV:treewide:fix "Attempt to change parameter passed by value"
In the function scope,the parameter should not be changed as Misra required. V1->V2 recover some violations because of ldra's false positive. V2->V3 sync local variable' type to parameter's type with the prefix of const. Signed-off-by: Huihuang Shi <huihuang.shi@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -335,9 +335,10 @@ static int vpic_icw4(struct vpic *vpic, struct pic *pic, uint8_t val)
|
||||
return 0;
|
||||
}
|
||||
|
||||
bool vpic_is_pin_mask(struct vpic *vpic, uint8_t virt_pin)
|
||||
bool vpic_is_pin_mask(struct vpic *vpic, uint8_t virt_pin_arg)
|
||||
{
|
||||
struct pic *pic;
|
||||
uint8_t virt_pin = virt_pin_arg;
|
||||
|
||||
if (virt_pin < 8U) {
|
||||
pic = &vpic->pic[0];
|
||||
|
||||
Reference in New Issue
Block a user