summaryrefslogtreecommitdiff
path: root/fs/coda
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2017-11-01 20:42:45 +0300
committerBen Hutchings <ben@decadent.org.uk>2018-02-13 21:42:15 +0300
commit820a29f1f8f8c8b14efc78cd8a86fb37f2e35a66 (patch)
treef0f359d4efe74e23850b0cfc732fbd63421cbb0f /fs/coda
parent7490ac4d59bae28ab969731afd46c56076ddb6b5 (diff)
downloadlinux-820a29f1f8f8c8b14efc78cd8a86fb37f2e35a66.tar.xz
platform/x86: sony-laptop: Fix error handling in sony_nc_setup_rfkill()
commit f6c8a317ab208aee223776327c06f23342492d54 upstream. Source code review for a specific software refactoring showed the need for another correction because the error code "-1" was returned so far if a call of the function "sony_call_snc_handle" failed here. Thus assign the return value from these two function calls also to the variable "err" and provide it in case of a failure. Fixes: d6f15ed876b83a1a0eba1d0473eef58acc95444a ("sony-laptop: use soft rfkill status stored in hw") Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com> Link: https://lkml.org/lkml/2017/10/31/463 Link: https://lkml.kernel.org/r/<CAHp75VcMkXCioCzmLE0+BTmkqc5RSOx9yPO0ectVHMrMvewgwg@mail.gmail.com> Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'fs/coda')
0 files changed, 0 insertions, 0 deletions