linux/drivers/platform/mellanox
Daniil Dulov 30f96b2cb7
platform/mellanox: mlxreg-hotplug: Remove redundant NULL-check
Pointer item is checked fo NULL at mlxreg_hotplug_work_helper() and then
it is dereferenced to produce dev_err().
This pointer is also dereferenced before calling this function and should
never be NULL except some piece of hardware is broken as it is said in
the comment before the check. So, this check can be safely removed.

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

Fixes: c6acad68eb ("platform/mellanox: mlxreg-hotplug: Modify to use a regmap interface")
Signed-off-by: Daniil Dulov <d.dulov@aladdin.ru>
Reviewed-by: Vadim Pasternak <vadimp@nvidia.com>
Link: https://lore.kernel.org/r/20240306153804.6509-1-d.dulov@aladdin.ru
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
2024-03-12 12:48:36 +02:00
..
Kconfig platform/mellanox: NVSW_SN2201 should depend on ACPI 2023-09-11 13:21:46 +02:00
Makefile platform/mellanox: Add support for new SN2201 system 2022-05-12 15:35:29 +02:00
mlxbf-bootctl.c drivers/platform/mellanox: Convert snprintf to sysfs_emit 2024-01-24 12:51:58 +02:00
mlxbf-bootctl.h mlxbf-bootctl: Support sysfs entries for MFG fields 2023-08-23 17:31:27 +02:00
mlxbf-pmc.c platform/mellanox: mlxbf-pmc: fix signedness bugs 2024-03-12 12:48:00 +02:00
mlxbf-tmfifo-regs.h platform/mellanox: Add BlueField-3 support in the tmfifo driver 2022-11-16 08:48:19 +01:00
mlxbf-tmfifo.c platform/mellanox: mlxbf-tmfifo: Drop Tx network packet when Tx TmFIFO is full 2024-01-22 12:21:40 +01:00
mlxreg-hotplug.c platform/mellanox: mlxreg-hotplug: Remove redundant NULL-check 2024-03-12 12:48:36 +02:00
mlxreg-io.c platform/mellanox: mlxreg-io: Convert to platform remove callback returning void 2023-09-28 13:26:27 +03:00
mlxreg-lc.c platform/mellanox: mlxreg-lc: Convert to platform remove callback returning void 2023-09-28 13:26:28 +03:00
nvsw-sn2201.c platform/mellanox: nvsw-sn2201: Convert to platform remove callback returning void 2023-09-28 13:26:31 +03:00