hwrng: core - convert sysfs sprintf/snprintf family to sysfs_emit
authorZihao Tang <tangzihao1@hisilicon.com>
Tue, 16 Mar 2021 12:34:12 +0000 (20:34 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 26 Mar 2021 09:02:34 +0000 (20:02 +1100)
commit91253022821def2a986f6d14762cbacde625b73c
tree38a59c3c21924701f7297f67fa037d3421ca5bdd
parent884b93c510250269fbf73d8333eb69f214c42c0b
hwrng: core - convert sysfs sprintf/snprintf family to sysfs_emit

Fix the following coccicheck warning:

drivers/char/hw_random/core.c:399:8-16: WARNING: use scnprintf or sprintf.

Signed-off-by: Zihao Tang <tangzihao1@hisilicon.com>
Signed-off-by: Jay Fang <f.fangjian@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/core.c