Skip to content

Commit

Permalink
lib/fs/readlink/readlinknul.h: readlinknul(): Simplify the return value
Browse files Browse the repository at this point in the history
We don't use the length at call site.  Just return 0 for success.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
  • Loading branch information
alejandro-colomar committed Nov 13, 2024
1 parent 929e61d commit 9c99500
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fs/readlink/readlinknul.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ readlinknul(const char *restrict link, char *restrict buf, size_t size)
}

stpcpy(&buf[len], "");
return len;
return 0;
}


Expand Down

0 comments on commit 9c99500

Please sign in to comment.