summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorThorsten Blum <thorsten.blum@linux.dev>2026-05-05 11:45:58 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2026-05-15 18:08:37 +0800
commitcdf940215537d6028177eea88e89bd8788719a99 (patch)
tree70e0fc964510aa8f291075b7ab9d22542efe3261 /scripts/Makefile.thinlto
parentdc3ec9af62a92a46378960e599521c2ac5f81343 (diff)
hwrng: core - use sysfs_emit_at in rng_available_show
Replace strlcat() with sysfs_emit_at() in rng_available_show() and add 'int len' to keep track of the number of bytes written. sysfs_emit_at() is preferred for formatting sysfs output because it provides safer bounds checking. Inline mutex_lock_interruptible() and drop the now-unused local error variable. Remove the unnecessary 'buf' NUL initialization. Return 'len' directly instead of strlen(buf). Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com> Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions