From: Axel Lin Date: Thu, 7 Jul 2011 02:05:49 +0000 (+0800) Subject: platform-drivers-x86: intel_menlow: add missing return AE_OK for intel_menlow_registe... X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c8bb2ebd6267d6c1288201344d7e7ee987d74467;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git platform-drivers-x86: intel_menlow: add missing return AE_OK for intel_menlow_register_sensor() Otherwise, the error path will always be executed. Signed-off-by: Axel Lin Signed-off-by: Matthew Garrett --- diff --git a/drivers/platform/x86/intel_menlow.c b/drivers/platform/x86/intel_menlow.c index 809adea4965f..abddc83e9fd7 100644 --- a/drivers/platform/x86/intel_menlow.c +++ b/drivers/platform/x86/intel_menlow.c @@ -477,6 +477,8 @@ static acpi_status intel_menlow_register_sensor(acpi_handle handle, u32 lvl, return AE_ERROR; } + return AE_OK; + aux1_not_found: if (status == AE_NOT_FOUND) return AE_OK;