diff options
| author | Thorsten Blum <thorsten.blum@linux.dev> | 2026-05-05 11:45:58 +0200 |
|---|---|---|
| committer | Herbert Xu <herbert@gondor.apana.org.au> | 2026-05-15 18:08:37 +0800 |
| commit | cdf940215537d6028177eea88e89bd8788719a99 (patch) | |
| tree | 70e0fc964510aa8f291075b7ab9d22542efe3261 /scripts/Makefile.thinlto | |
| parent | dc3ec9af62a92a46378960e599521c2ac5f81343 (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
