linux-yocto/drivers/acpi/pmic
Aleksandr Mishin 9349283fc6 ACPI: PMIC: Remove unneeded check in tps68470_pmic_opregion_probe()
[ Upstream commit 07442c46ab ]

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: e13452ac37 ("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-10-04 16:28:49 +02:00
..
intel_pmic_bxtwc.c
intel_pmic_bytcrc.c
intel_pmic_chtcrc.c
intel_pmic_chtdc_ti.c ACPI: PMIC: Add comments with DSDT power opregion field names 2023-01-30 16:47:13 +01:00
intel_pmic_chtwc.c
intel_pmic_xpower.c
intel_pmic.c
intel_pmic.h
Kconfig
Makefile
tps68470_pmic.c ACPI: PMIC: Remove unneeded check in tps68470_pmic_opregion_probe() 2024-10-04 16:28:49 +02:00