platform/mellanox: mlxbf-pmc: fix signedness bugs
authorDan Carpenter <dan.carpenter@linaro.org>
Thu, 29 Feb 2024 13:11:36 +0000 (16:11 +0300)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 12 Mar 2024 10:48:00 +0000 (12:48 +0200)
commit7c8772fef2c25b951660ff31aa1d2174b45af043
tree1f71216cfd8e0c60ae6a6ac797915512f63e1160
parente8b4223dbf12cb6b722e1b8c48a9386cb096d4fb
platform/mellanox: mlxbf-pmc: fix signedness bugs

These need to be signed for the error handling to work.  The
mlxbf_pmc_get_event_num() function returns int so int type is correct.

Fixes: 1ae9ffd303c2 ("platform/mellanox: mlxbf-pmc: Cleanup signed/unsigned mix-up")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/a4af764e-990b-4ebd-b342-852844374032@moroto.mountain
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/mellanox/mlxbf-pmc.c