1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/platform/x86/dell
Armin Wolf 306aec7eea platform/x86: dell-smbios: Simplify error handling
When the allocation of value_name fails, the error handling code
uses two gotos for error handling, which is not necessary.

Simplify the error handling in this case by only using a single goto.

Tested on a Dell Inspiron 3505.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20240528204903.445546-2-W_Armin@gmx.de
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2024-06-03 11:54:29 +02:00
..
dell-wmi-sysman platform/x86: make fw_attr_class constant 2024-03-12 12:48:13 +02:00
alienware-wmi.c platform/x86/dell: alienware-wmi: Use kasprintf() 2023-11-20 14:05:04 +01:00
dcdbas.c Documentation: move driver-api/dcdbas to userspace-api/ 2024-01-03 14:17:40 -07:00
dcdbas.h platform/x86/dell: add buffer allocation/free functions for SMI calls 2022-04-27 21:45:28 +02:00
dell-laptop.c platform/x86: remove obsolete calls to ledtrig_audio_get 2024-01-24 12:37:09 +02:00
dell-rbtn.c platform/x86/dell: drop owner assignment 2024-04-08 16:16:55 +02:00
dell-rbtn.h platform/x86: Move all dell drivers to their own subdirectory 2021-02-04 13:23:55 +01:00
dell-smbios-base.c platform/x86: dell-smbios: Simplify error handling 2024-06-03 11:54:29 +02:00
dell-smbios-smm.c platform/x86/dell: add buffer allocation/free functions for SMI calls 2022-04-27 21:45:28 +02:00
dell-smbios-wmi.c platform/x86: dell-smbios-wmi: Stop using WMI chardev 2023-12-11 11:23:54 +01:00
dell-smbios.h platform/x86: dell-laptop: Register ctl-led for speaker-mute 2023-03-16 14:51:07 +01:00
dell-smo8800.c platform/x86: dell: dell-smo8800: Convert to platform remove callback returning void 2023-03-07 12:19:56 +01:00
dell-uart-backlight.c platform/x86: Add new Dell UART backlight driver 2024-05-14 11:43:40 +02:00
dell-wmi-aio.c platform/x86: Move all dell drivers to their own subdirectory 2021-02-04 13:23:55 +01:00
dell-wmi-base.c platform/x86: dell-wmi: Add a keymap for KEY_MUTE in type 0x0010 table 2023-01-24 13:41:13 +01:00
dell-wmi-ddv.c platform/x86: wmi: Do not instantiate older WMI drivers multiple times 2024-03-12 12:47:35 +02:00
dell-wmi-descriptor.c platform/x86: Adjust Dell drivers to a personal email address 2021-04-07 19:47:23 +02:00
dell-wmi-descriptor.h platform/x86: Move all dell drivers to their own subdirectory 2021-02-04 13:23:55 +01:00
dell-wmi-led.c platform/x86: Move all dell drivers to their own subdirectory 2021-02-04 13:23:55 +01:00
dell-wmi-privacy.c platform/x86: dell-privacy: Remove usage of wmi_has_guid() 2024-02-27 14:45:27 +02:00
dell-wmi-privacy.h platform/x86: dell-privacy: Add support for Dell hardware privacy 2021-06-16 17:47:51 +02:00
dell_rbu.c platform/x86: use PLATFORM_DEVID_NONE instead of -1 2022-10-03 09:40:04 +02:00
Kconfig platform/x86: Add new Dell UART backlight driver 2024-05-14 11:43:40 +02:00
Makefile platform/x86: Add new Dell UART backlight driver 2024-05-14 11:43:40 +02:00