kernel_samsung_a53x/drivers/acpi/pmic
Aleksandr Mishin d0bcd36ebb ACPI: PMIC: Remove unneeded check in tps68470_pmic_opregion_probe()
[ Upstream commit 07442c46abad1d50ac82af5e0f9c5de2732c4592 ]

In tps68470_pmic_opregion_probe() pointer 'dev' is compared to NULL which
is useless.

Fix this issue by removing unneeded check.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: e13452ac3790 ("ACPI / PMIC: Add TI PMIC TPS68470 operation region driver")
Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Aleksandr Mishin <amishin@t-argos.ru>
Reviewed-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://patch.msgid.link/20240730225339.13165-1-amishin@t-argos.ru
[ rjw: Subject edit ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-23 23:21:17 +01:00
..
intel_pmic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_pmic.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_pmic_bxtwc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_pmic_bytcrc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_pmic_chtcrc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_pmic_chtdc_ti.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_pmic_chtwc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_pmic_xpower.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tps68470_pmic.c ACPI: PMIC: Remove unneeded check in tps68470_pmic_opregion_probe() 2024-11-23 23:21:17 +01:00