OSDN Git Service

s390/zcrypt: utilize dev_set_name() ability to use a formatted string
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 31 Aug 2023 11:00:00 +0000 (14:00 +0300)
committerHeiko Carstens <hca@linux.ibm.com>
Tue, 5 Sep 2023 18:12:52 +0000 (20:12 +0200)
commitf59ec04d382d2f2528f439947e215a52703e0094
treed5c9e88eb53d05202530a9cadfb9f859a95acb6a
parent6252f47b78031979ad919f971dc8468b893488bd
s390/zcrypt: utilize dev_set_name() ability to use a formatted string

With the dev_set_name() prototype it's not obvious that it takes
a formatted string as a parameter. Use its facility instead of
duplicating the same with strncpy()/snprintf() calls.

With this, also prevent return error code to be shadowed.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20230831110000.24279-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
drivers/s390/crypto/zcrypt_api.c