• Zhang Rui's avatar
    intel-rst: convert acpi_evaluate_object() to acpi_evaluate_integer() · c7c878a4
    Zhang Rui authored
    acpi_evaluate_integer() is an ACPI API introduced to evaluate an
    ACPI control method that is known to have an integer return value.
    This API can simplify the code because the calling function does not need to
    use the specified acpi_buffer structure required by acpi_evaluate_object();
    
    Convert acpi_evaluate_object() to acpi_evaluate_integer()
    in drivers/platform/x86/intel-rst.c in this patch.
    Plus, this should also fix a memory leak that
    the acpi_buffer is not freed in some cases.
    Signed-off-by: default avatarZhang Rui <rui.zhang@intel.com>
    CC: Matthew Garrett <matthew.garrett@nebula.com>
    Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
    c7c878a4
intel-rst.c 3.72 KB