[PATCH v6 10/19] platform/x86: hp-bioscfg: Rename local variable
From: Alejandro Colomar
Date: Sat Nov 14 2026 - 10:23:55 EST
strprefix shadows a function of the same name. Let's rename it.
Signed-off-by: Alejandro Colomar <alx@xxxxxxxxxx>
---
drivers/platform/x86/hp/hp-bioscfg/spmobj-attributes.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/platform/x86/hp/hp-bioscfg/spmobj-attributes.c b/drivers/platform/x86/hp/hp-bioscfg/spmobj-attributes.c
index 343b2356943e..a38d200bd0d9 100644
--- a/drivers/platform/x86/hp/hp-bioscfg/spmobj-attributes.c
+++ b/drivers/platform/x86/hp/hp-bioscfg/spmobj-attributes.c
@@ -67,7 +67,7 @@ size_t hp_calculate_security_buffer(const char *authentication)
int hp_populate_security_buffer(u16 *authbuf, const char *authentication)
{
u16 *auth = authbuf;
- char *strprefix = NULL;
+ char *prefix = NULL;
int ret = 0;
if (strstarts(authentication, BEAM_PREFIX)) {
@@ -87,13 +87,13 @@ int hp_populate_security_buffer(u16 *authbuf, const char *authentication)
*/
/* append UTF_PREFIX to part and then convert it to unicode */
- strprefix = kasprintf(GFP_KERNEL, "%s%s", UTF_PREFIX,
+ prefix = kasprintf(GFP_KERNEL, "%s%s", UTF_PREFIX,
authentication);
- if (!strprefix)
+ if (!prefix)
return -ENOMEM;
- auth = hp_ascii_to_utf16_unicode(auth, strprefix);
- kfree(strprefix);
+ auth = hp_ascii_to_utf16_unicode(auth, prefix);
+ kfree(prefix);
if (!auth) {
ret = -EINVAL;
--
2.55.0
Attachment:
signature.asc
Description: PGP signature