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)
commitff448bbaacfb6f216ae101c1f16d8c5142c16fdf
tree8b1a5a8931b2a62cf0cf825a81e78df5969eddbf
parent01df1385ec4ec699ad6a63007e7f1081089e83a0
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