mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-18 15:28:43 +00:00
dm: refine 'assert' usage in pm.c and acpi.c
'assert' usage cleanup to avoid possible software vulnerabilities Tracked-On: #3252 Signed-off-by: Yonghua Huang <yonghua.huang@intel.com> Reviewed-by: Shuo A Liu <shuo.a.liu@intel.com>
This commit is contained in:
@@ -857,14 +857,13 @@ void
|
||||
dsdt_indent(int levels)
|
||||
{
|
||||
dsdt_indent_level += levels;
|
||||
assert(dsdt_indent_level >= 0);
|
||||
}
|
||||
|
||||
void
|
||||
dsdt_unindent(int levels)
|
||||
{
|
||||
assert(dsdt_indent_level >= levels);
|
||||
dsdt_indent_level -= levels;
|
||||
if (dsdt_indent_level >= levels)
|
||||
dsdt_indent_level -= levels;
|
||||
}
|
||||
|
||||
void
|
||||
|
Reference in New Issue
Block a user