Skip to content

Commit

Permalink
mcp251xfd-regmap: do_mcp251xfd_regmap_read(): fix compiler warning in…
Browse files Browse the repository at this point in the history
… a more straight forward way

Link: linux-can@d294cd9#r139957294
Suggested-by: Oliver Hartkopp <[email protected]>
  • Loading branch information
marckleinebudde committed Mar 19, 2024
1 parent 8c94f3f commit 95f1259
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions mcp251xfd/mcp251xfd-regmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 95f1259

Please sign in to comment.