Skip to contentSkip to conversation

platform-drivers-x86: intel_menlow: add missing return AE_OK for intel_menlow_register_sensor()

PATCH New Axel Lin 1 participant 1 message Jul 7, 2011 x86 platform drivers

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 platform-drivers-x86: intel_menlow: add missing return AE_OK for intel_menlow_register_sensor()

Otherwise, the error path will always be executed.

---
 drivers/platform/x86/intel_menlow.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/platform/x86/intel_menlow.c +2 -0
index 809adea..abddc83 100644
@@ -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;
Signature · 1 line
1.7.4.1