linux/drivers/acpi/pmic
Aleksandr Mishin 07442c46ab 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: 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>
2024-08-02 17:05:08 +02:00
..
intel_pmic_bxtwc.c ACPI: PMIC: Constify struct pmic_table 2024-07-01 20:06:02 +02:00
intel_pmic_bytcrc.c ACPI: PMIC: Constify struct pmic_table 2024-07-01 20:06:02 +02:00
intel_pmic_chtcrc.c ACPI: PMIC: allow drivers to provide a custom lpat_raw_to_temp() function 2021-12-08 15:34:57 +01:00
intel_pmic_chtdc_ti.c ACPI: PMIC: Constify struct pmic_table 2024-07-01 20:06:02 +02:00
intel_pmic_chtwc.c ACPI: PMIC: Constify struct pmic_table 2024-07-01 20:06:02 +02:00
intel_pmic_xpower.c ACPI: PMIC: Constify struct pmic_table 2024-07-01 20:06:02 +02:00
intel_pmic.c ACPI: PMIC: Constify struct pmic_table 2024-07-01 20:06:02 +02:00
intel_pmic.h ACPI: PMIC: Constify struct pmic_table 2024-07-01 20:06:02 +02:00
Kconfig mfd: tps68470: Remove tps68470 MFD driver 2021-06-17 13:12:18 +02:00
Makefile ACPI / PMIC: Move TPS68470 OpRegion driver to drivers/acpi/pmic/ 2020-09-15 19:40:59 +02:00
tps68470_pmic.c ACPI: PMIC: Remove unneeded check in tps68470_pmic_opregion_probe() 2024-08-02 17:05:08 +02:00