Skip to content

Commit

Permalink
platform-drivers-x86: intel_menlow: add missing return AE_OK for inte…
Browse files Browse the repository at this point in the history
…l_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>
  • Loading branch information
Axel Lin authored and Matthew Garrett committed Aug 5, 2011
1 parent 03f8952 commit c8bb2eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/platform/x86/intel_menlow.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c8bb2eb

Please sign in to comment.