mcp251xfd-regmap: do_mcp251xfd_regmap_read(): fix compiler warning in a more straight forward way

Link: https://github.com/linux-can/can-utils/commit/d294cd928c363965e989863be99d30b50bb07d9f#r139957294
Suggested-by: Oliver Hartkopp <socketcan@hartkopp.net>
This commit is contained in:
Marc Kleine-Budde
2024-03-19 13:01:46 +01:00
parent 8c94f3f72a
commit 95f12594a6
+1 -4
View File
@@ -35,10 +35,7 @@ do_mcp251xfd_regmap_read(struct mcp251xfd_priv *priv,
while ((ret = fscanf(reg_file, "%hx: %x\n", &reg, &val)) != EOF) {
if (ret != 2) {
int tmp;
tmp = fscanf(reg_file, "%*[^\n]\n");
(void)tmp;
ret = fscanf(reg_file, "%*[^\n]\n");
continue;
}