linux-stable/drivers/platform/mellanox
Dan Carpenter 95e4b25192 platform/mellanox: mlxbf-pmc: fix sscanf() error checking
The sscanf() function never returns negatives.  It returns the number of
items successfully read.

Fixes: 1a218d312e ("platform/mellanox: mlxbf-pmc: Add Mellanox BlueField PMC driver")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/4ccdfd28-099b-40bf-8d77-ad4ea2e76b93@kili.mountain
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2023-05-15 14:56:22 +02:00
..
Kconfig platform: mellanox: select REGMAP instead of depending on it 2023-03-07 11:37:27 +01:00
Makefile platform/mellanox: Add support for new SN2201 system 2022-05-12 15:35:29 +02:00
mlxbf-bootctl.c mlxbf-bootctl: Add sysfs file for BlueField boot fifo 2023-04-17 10:17:09 +02:00
mlxbf-bootctl.h platform/mellanox: add firmware reset support 2023-04-06 14:26:03 +02:00
mlxbf-pmc.c platform/mellanox: mlxbf-pmc: fix sscanf() error checking 2023-05-15 14:56:22 +02:00
mlxbf-tmfifo-regs.h platform/mellanox: Add BlueField-3 support in the tmfifo driver 2022-11-16 08:48:19 +01:00
mlxbf-tmfifo.c platform/mellanox: fix potential race in mlxbf-tmfifo driver 2023-05-09 11:54:35 +02:00
mlxreg-hotplug.c platform/mellanox: mlxreg-hotplug: Allow more flexible hotplug events configuration 2023-02-13 12:07:50 +01:00
mlxreg-io.c platform/mellanox: mlxreg-io: Add locking for io operations 2022-07-14 22:34:42 +02:00
mlxreg-lc.c platform/mellanox: mlxreg-lc: Make error handling flow consistent 2022-09-09 21:58:16 +02:00
nvsw-sn2201.c platform/mellanox: nvsw-sn2201: fix error code in nvsw_sn2201_create_static_devices() 2022-06-27 09:38:56 +02:00