public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] platform-drivers-x86: intel_menlow: add missing return AE_OK for intel_menlow_register_sensor()
@ 2011-07-07  2:05 Axel Lin
  0 siblings, 0 replies; only message in thread
From: Axel Lin @ 2011-07-07  2:05 UTC (permalink / raw)
  To: linux-kernel; +Cc: Sujith Thomas, Matthew Garrett, platform-driver-x86

Otherwise, the error path will always be executed.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
 drivers/platform/x86/intel_menlow.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/platform/x86/intel_menlow.c b/drivers/platform/x86/intel_menlow.c
index 809adea..abddc83 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;
-- 
1.7.4.1




^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-07-07  2:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-07  2:05 [PATCH] platform-drivers-x86: intel_menlow: add missing return AE_OK for intel_menlow_register_sensor() Axel Lin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox