mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-04 15:14:27 +00:00
HV: Logical conjunction needs brackets
The bracket is required when the level of precedence of the operators is less than 13. Add the bracket to logical conjunctions. The commit applys the rule to the files under Signed-off-by: Yang, Yu-chu <yu-chu.yang@intel.com> Reviewed-by: Junjie Mao <junjie.mao@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
@@ -710,7 +710,7 @@ int shell_dumpmem(int argc, char **argv)
|
||||
char temp_str[MAX_STR_SIZE];
|
||||
|
||||
/* User input invalidation */
|
||||
if (argc != 2 && argc != 3) {
|
||||
if ((argc != 2) && (argc != 3)) {
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user