Skip to content
Commit d56fbfba authored by 倪琛's avatar 倪琛 Committed by Hans de Goede
Browse files

platform/mellanox: nvsw-sn2201: Add check for platform_device_add_resources



Add check for the return value of platform_device_add_resources() and
return the error if it fails in order to catch the error.

Signed-off-by: default avatarChen Ni <nichen@iscas.ac.cn>
Link: https://lore.kernel.org/r/20240605032745.2916183-1-nichen@iscas.ac.cn
Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
parent 77f1972b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment