Merge pull request #620 from marckleinebudde/mcp251xfd-fix-strchr

mcp251xfd: mcp251xfd_regmap_read(): don't assign return value of `strchr()` to `char *`
master
Marc Kleine-Budde 2026-03-04 11:38:43 +01:00 committed by GitHub
commit 1520ab5b98
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

View File

@ -72,8 +72,7 @@ int mcp251xfd_regmap_read(struct mcp251xfd_priv *priv,
return 0;
/* maybe it's something like "spi0.0" */
tmp = strchr(file_path, '/');
if (tmp)
if (strchr(file_path, '/'))
return -ENOENT;
/* first try literally */