Skip to content

Commit

Permalink
Merge pull request #509 from marckleinebudde/mcp251xfd-regmap-fix-com…
Browse files Browse the repository at this point in the history
…piler-warning

mcp251xfd-regmap: do_mcp251xfd_regmap_read(): fix compiler warning in a more straight forward way
  • Loading branch information
marckleinebudde committed Mar 19, 2024
2 parents 8c94f3f + 95f1259 commit bbd48cb
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 bbd48cb

Please sign in to comment.