diff options
author | Vadim Pasternak <vadimp@nvidia.com> | 2022-08-23 22:19:34 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2022-09-01 14:20:30 +0200 |
commit | 16b36a953bc7fc4843568abcdb7b32f92cc65457 (patch) | |
tree | c0a9ffa2fe9fe8dfed32d62c4daa55a185a13889 /crypto | |
parent | platform/x86: acer-wmi: Acer Aspire One AOD270/Packard Bell Dot keymap fixes (diff) | |
download | linux-16b36a953bc7fc4843568abcdb7b32f92cc65457.tar.xz linux-16b36a953bc7fc4843568abcdb7b32f92cc65457.zip |
platform/mellanox: mlxreg-lc: Fix coverity warning
Fix smatch warning:
drivers/platform/mellanox/mlxreg-lc.c:866 mlxreg_lc_probe() warn: passing zero to 'PTR_ERR'
by removing 'err = PTR_ERR(regmap)'.
Fixes: b4b830a34d80 ("platform/mellanox: mlxreg-lc: Fix error flow and extend verbosity")
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Vadim Pasternak <vadimp@nvidia.com>
Link: https://lore.kernel.org/r/20220823201937.46855-2-vadimp@nvidia.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions