diff options
| author | 2022-08-23 23:19:36 +0300 | |
|---|---|---|
| committer | 2022-09-01 14:22:48 +0200 | |
| commit | 2f92fdd043d548a14287889742e147f8ed4ee03d (patch) | |
| tree | e24affc538a0455b5f32363cc2ed6e77a90d2a57 /tools/scripts/ssh:/git@git.zx2c4.com/git:/git.zx2c4.com | |
| parent | platform/mellanox: mlxreg-lc: Fix locking issue (diff) | |
| download | linux-dev-2f92fdd043d548a14287889742e147f8ed4ee03d.tar.xz linux-dev-2f92fdd043d548a14287889742e147f8ed4ee03d.zip | |
platform/mellanox: Remove unnecessary code
Remove redundant 'NULL' check for of if 'data->notifier'.
Replace 'return err' by 'return 0' in mlxreg_lc_probe().
Fixes: 62f9529b8d5c87b ("platform/mellanox: mlxreg-lc: Add initial support for Nvidia line card devices")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Vadim Pasternak <vadimp@nvidia.com>
Link: https://lore.kernel.org/r/20220823201937.46855-4-vadimp@nvidia.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'tools/scripts/ssh:/git@git.zx2c4.com/git:/git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
