]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ACPI: PMIC: Remove unneeded check in tps68470_pmic_opregion_probe()
authorAleksandr Mishin <amishin@t-argos.ru>
Tue, 30 Jul 2024 22:53:39 +0000 (01:53 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:10:43 +0000 (15:10 +0200)
commit9dd0cb484cfad72cee4cb68ebf22d3a73be609f7
tree545a33483a74e1ef6969fc165cab559ea40ccf72
parent435ec96011f5c8412b340e1a4a364021922ecd8a
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>
drivers/acpi/pmic/tps68470_pmic.c