diff options
| author | Daniil Dulov <[email protected]> | 2024-03-06 15:38:04 +0000 |
|---|---|---|
| committer | Ilpo Järvinen <[email protected]> | 2024-03-12 10:48:36 +0000 |
| commit | 30f96b2cb70d882515efae4d4af698f18a65c75e (patch) | |
| tree | 504acbd40c1891d0969237c41b8846682fa9120e /scripts/generate_rust_target.rs | |
| parent | platform/x86/amd/pmf: Update sps power thermals according to the platform-pro... (diff) | |
| download | kernel-30f96b2cb70d882515efae4d4af698f18a65c75e.tar.gz kernel-30f96b2cb70d882515efae4d4af698f18a65c75e.zip | |
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: c6acad68eb2d ("platform/mellanox: mlxreg-hotplug: Modify to use a regmap interface")
Signed-off-by: Daniil Dulov <[email protected]>
Reviewed-by: Vadim Pasternak <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Ilpo Järvinen <[email protected]>
Signed-off-by: Ilpo Järvinen <[email protected]>
Diffstat (limited to 'scripts/generate_rust_target.rs')
0 files changed, 0 insertions, 0 deletions
