crypto: marvell/octeontx - use sysfs_emit() to instead of scnprintf()
authorye xingchen <ye.xingchen@zte.com.cn>
Fri, 23 Sep 2022 01:29:52 +0000 (01:29 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 30 Sep 2022 05:59:13 +0000 (13:59 +0800)
commitedfc7e76d2252eebb98328b23e09336d47810569
tree52a96bba6fa1b42d590620f223a651da0d6a8366
parentb006c439d58db625318bf2207feabf847510a8a6
crypto: marvell/octeontx - use sysfs_emit() to instead of scnprintf()

Replace the open-code with sysfs_emit() to simplify the code.

Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/marvell/octeontx/otx_cptvf_main.c