[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240705113434.17249-1-amishin@t-argos.ru>
Date: Fri, 5 Jul 2024 14:34:34 +0300
From: Aleksandr Mishin <amishin@...rgos.ru>
To: Rajmohan Mani <rajmohan.mani@...el.com>
CC: Aleksandr Mishin <amishin@...rgos.ru>, "Rafael J. Wysocki"
<rafael@...nel.org>, Len Brown <lenb@...nel.org>, Andy Shevchenko
<andy@...nel.org>, Mika Westerberg <mika.westerberg@...ux.intel.com>, Sakari
Ailus <sakari.ailus@...ux.intel.com>, <linux-acpi@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, <lvc-project@...uxtesting.org>
Subject: [PATCH] ACPI / PMIC: Remove unneeded check in tps68470_pmic_opregion_probe()
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")
Signed-off-by: Aleksandr Mishin <amishin@...rgos.ru>
---
drivers/acpi/pmic/tps68470_pmic.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/acpi/pmic/tps68470_pmic.c b/drivers/acpi/pmic/tps68470_pmic.c
index ebd03e472955..f8de8d0a528b 100644
--- a/drivers/acpi/pmic/tps68470_pmic.c
+++ b/drivers/acpi/pmic/tps68470_pmic.c
@@ -376,7 +376,7 @@ static int tps68470_pmic_opregion_probe(struct platform_device *pdev)
struct tps68470_pmic_opregion *opregion;
acpi_status status;
- if (!dev || !tps68470_regmap) {
+ if (!tps68470_regmap) {
dev_warn(dev, "dev or regmap is NULL\n");
return -EINVAL;
}
--
2.30.2
Powered by blists - more mailing lists