original_kernel/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
Kconfig
Makefile
alienware-wmi.c
dcdbas.c
dcdbas.h
dell-laptop.c
dell-rbtn.c
dell-rbtn.h
dell-smbios-base.c platform/x86: dell-smbios: Simplify error handling 2024-06-03 11:54:29 +02:00
dell-smbios-smm.c
dell-smbios-wmi.c
dell-smbios.h
dell-smo8800.c
dell-uart-backlight.c
dell-wmi-aio.c
dell-wmi-base.c
dell-wmi-ddv.c
dell-wmi-descriptor.c
dell-wmi-descriptor.h
dell-wmi-led.c
dell-wmi-privacy.c
dell-wmi-privacy.h
dell_rbu.c