diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-07-06 22:05:49 -0400 |
---|---|---|
committer | Matthew Garrett <mjg@redhat.com> | 2011-08-05 14:46:12 -0400 |
commit | c8bb2ebd6267d6c1288201344d7e7ee987d74467 (patch) | |
tree | af708620fa450a71cfa01e69de279b29cbd30c10 /drivers | |
parent | 03f8952cf63b6059e56074be6ed450dc7739cdee (diff) |
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 <axel.lin@gmail.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | 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 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, | |||
477 | return AE_ERROR; | 477 | return AE_ERROR; |
478 | } | 478 | } |
479 | 479 | ||
480 | return AE_OK; | ||
481 | |||
480 | aux1_not_found: | 482 | aux1_not_found: |
481 | if (status == AE_NOT_FOUND) | 483 | if (status == AE_NOT_FOUND) |
482 | return AE_OK; | 484 | return AE_OK; |