]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: dell-wmi-sysman: Cleanup sysman_init() error-exit handling
authorHans de Goede <hdegoede@redhat.com>
Sun, 21 Mar 2021 11:58:59 +0000 (12:58 +0100)
committerHans de Goede <hdegoede@redhat.com>
Sun, 21 Mar 2021 16:47:23 +0000 (17:47 +0100)
commite1c3859394039b218c22c210462ca2ba3f9b448e
tree6adf12e2286da0798c906df7894653c175dd6e52
parent6c4e9f59cf91d1b9429a3aa7209d6c2e6e8023be
platform/x86: dell-wmi-sysman: Cleanup sysman_init() error-exit handling

Cleanup sysman_init() error-exit handling:

1. There is no need for the fail_reset_bios and fail_authentication_kset
   eror-exit cases, these can be handled by release_attributes_data()

2. Rename all the labels from fail_what_failed, to err_what_to_cleanup
   this is the usual way to name these and avoids the need to rename
   them when extra steps are added.

Fixes: 25afa9d472ce ("platform/x86: Introduce support for Systems Management Driver over WMI for Dell Systems")
Cc: Divya Bharathi <Divya_Bharathi@dell.com>
Cc: Mario Limonciello <mario.limonciello@dell.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20210321115901.35072-6-hdegoede@redhat.com
drivers/platform/x86/dell/dell-wmi-sysman/sysman.c