diff options
| author | Jiapeng Chong <[email protected]> | 2021-07-23 10:36:09 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2021-07-25 09:47:24 +0000 |
| commit | 7e4960b3d66d7248b23de3251118147812b42da2 (patch) | |
| tree | b166a7a994addaacc9914a24244689f7062aad68 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |
| parent | net: phy: broadcom: re-add check for PHY_BRCM_DIS_TXCRXC_NOENRGY on the BCM54... (diff) | |
| download | kernel-7e4960b3d66d7248b23de3251118147812b42da2.tar.gz kernel-7e4960b3d66d7248b23de3251118147812b42da2.zip | |
mlx4: Fix missing error code in mlx4_load_one()
The error code is missing in this code scenario, add the error code
'-EINVAL' to the return value 'err'.
Eliminate the follow smatch warning:
drivers/net/ethernet/mellanox/mlx4/main.c:3538 mlx4_load_one() warn:
missing error code 'err'.
Reported-by: Abaci Robot <[email protected]>
Fixes: 7ae0e400cd93 ("net/mlx4_core: Flexible (asymmetric) allocation of EQs and MSI-X vectors for PF/VFs")
Signed-off-by: Jiapeng Chong <[email protected]>
Reviewed-by: Tariq Toukan <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions
