diff options
author | Vadim Pasternak <vadimp@nvidia.com> | 2022-08-23 23:19:36 +0300 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2022-09-01 15:20:46 +0300 |
commit | 1c8ee06b637f0b0146bbcda776d131e4822432c3 (patch) | |
tree | 7454ca4d04ec8a2b9ba254f44ba2b1bdf181b6f3 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 52e01c0b1d80b0a7e8d9970456e10b788398e633 (diff) | |
download | linux-1c8ee06b637f0b0146bbcda776d131e4822432c3.tar.xz |
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/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions