]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: think-lmi: Simplify tlmi_analyze() error handling a bit
authorHans de Goede <hdegoede@redhat.com>
Thu, 18 Nov 2021 11:41:50 +0000 (12:41 +0100)
committerHans de Goede <hdegoede@redhat.com>
Mon, 22 Nov 2021 12:51:31 +0000 (13:51 +0100)
commit262933edeee96642915a78f00b4d3a447cfd27bd
tree8b1a5a8931b2a62cf0cf825a81e78df5969eddbf
parentdc47e62e5e1231be80e67ba69737915a6badb1ae
platform/x86: think-lmi: Simplify tlmi_analyze() error handling a bit

Creating the tlmi_pwd_setting structs can only fail with -ENOMEM, set
ret to this once and simplify the error handling a bit.

Tested-by: Mark Pearson <markpearson@lenovo.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20211118114150.271274-2-hdegoede@redhat.com
drivers/platform/x86/think-lmi.c