mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-24 02:08:04 +00:00
HV: Avoiding the chained assignment
To follow the Misra C standard, doing one assignment per line to make code is clearly readable and reduces the confusion of its intetion or typo. Signed-off-by: Yang, Yu-chu <yu-chu.yang@intel.com>
This commit is contained in:
@@ -101,7 +101,8 @@ static void _get_req_info_(struct vhm_request *req, int *id, char *type,
|
||||
char *state, char *dir, long *addr, long *val)
|
||||
{
|
||||
(void)strcpy_s(dir, 16, "NONE");
|
||||
*addr = *val = 0;
|
||||
*addr = 0;
|
||||
*val = 0;
|
||||
*id = req->client;
|
||||
|
||||
switch (req->type) {
|
||||
|
Reference in New Issue
Block a user