diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2022-06-15 11:11:07 +0300 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2022-06-27 09:38:56 +0200 |
commit | 79e90ca02d7d45898c52fd8523cd4a2a304e409c (patch) | |
tree | cfb8436d46c3d8f877774574a4e28e4bae5a74ff /drivers/platform/x86 | |
parent | d63eae6747eb8b3192e89712f6553c6aa162f872 (diff) | |
download | linux-stable-79e90ca02d7d45898c52fd8523cd4a2a304e409c.tar.gz linux-stable-79e90ca02d7d45898c52fd8523cd4a2a304e409c.tar.bz2 linux-stable-79e90ca02d7d45898c52fd8523cd4a2a304e409c.zip |
platform/mellanox: nvsw-sn2201: fix error code in nvsw_sn2201_create_static_devices()
This should return PTR_ERR() instead of IS_ERR(). Also "dev->client"
has been set to NULL by this point so it returns 0/success so preserve
the error code earlier.
Fixes: 662f24826f95 ("platform/mellanox: Add support for new SN2201 system")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Michael Shych <michaelsh@nvidia.com>
Link: https://lore.kernel.org/r/YqmUGwmPK7cPolk/@kili
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'drivers/platform/x86')
0 files changed, 0 insertions, 0 deletions