summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKunwu Chan <chentao@kylinos.cn>2023-12-01 08:54:47 +0300
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2023-12-04 16:01:46 +0300
commit3494a594315b56516988afb6854d75dee5b501db (patch)
treeaaf6eb872281f056c7b446ff96672af54ad006d6 /include
parent2c7c857f5fed997be93047d2de853d7f10c8defe (diff)
downloadlinux-3494a594315b56516988afb6854d75dee5b501db.tar.xz
platform/mellanox: Check devm_hwmon_device_register_with_groups() return value
devm_hwmon_device_register_with_groups() returns an error pointer upon failure. Check its return value for errors. Compile-tested only. Fixes: 1a218d312e65 ("platform/mellanox: mlxbf-pmc: Add Mellanox BlueField PMC driver") Suggested-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Suggested-by: Vadim Pasternak <vadimp@nvidia.com> Signed-off-by: Kunwu Chan <chentao@kylinos.cn> Reviewed-by: Vadim Pasternak <vadimp@nvidia.com> Link: https://lore.kernel.org/r/20231201055447.2356001-1-chentao@kylinos.cn [ij: split the change into two] Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions