platform/mellanox: Remove redundant 'NULL' check
authorVadim Pasternak <vadimp@nvidia.com>
Tue, 23 Aug 2022 20:19:37 +0000 (23:19 +0300)
committerHans de Goede <hdegoede@redhat.com>
Thu, 1 Sep 2022 12:20:50 +0000 (14:20 +0200)
commit059209fd902f5ad4bec8124931c258e62fddf74f
tree32781983adf5d38982a88757f1364b24f6bec2f3
parent1c8ee06b637f0b0146bbcda776d131e4822432c3
platform/mellanox: Remove redundant 'NULL' check

Remove 'NULL' check for 'data->hpdev.client' in error flow of
mlxreg_lc_probe(). It cannot be 'NULL' at this point.

Fixes: b4b830a34d80 ("platform/mellanox: mlxreg-lc: Fix error flow and extend verbosity")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Vadim Pasternak <vadimp@nvidia.com>
Link: https://lore.kernel.org/r/20220823201937.46855-5-vadimp@nvidia.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/mellanox/mlxreg-lc.c