From: Burak Ozdemir <bozdemir@gmail.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: [PATCH] staging: pi433: Fix string form declaration
Date: Fri, 9 Sep 2022 18:24:13 +0000 [thread overview]
Message-ID: <631b5aa8.170a0220.9378b.124a@mx.google.com> (raw)
From: Burak Ozdemir <bozdemir@gmail.com>
Use correct string form declaration, prevent extra variable
declaration in final assembly output.
Signed-off-by: Burak Ozdemir <bozdemir@gmail.com>
---
drivers/staging/pi433/pi433_if.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/staging/pi433/pi433_if.c
index df02335fdbab..70b3709acbb2 100644
--- a/drivers/staging/pi433/pi433_if.c
+++ b/drivers/staging/pi433/pi433_if.c
@@ -1105,7 +1105,7 @@ static int pi433_debugfs_regs_show(struct seq_file *m, void *p)
struct pi433_device *dev;
u8 reg_data[114];
int i;
- char *fmt = "0x%02x, 0x%02x\n";
+ static const char fmt[] = "0x%02x, 0x%02x\n";
int ret;
dev = m->private;
--
2.35.1
next reply other threads:[~2022-09-09 15:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-09 18:24 Burak Ozdemir [this message]
2022-09-09 18:04 ` [PATCH] staging: pi433: Fix string form declaration Greg Kroah-Hartman
[not found] ` <CACAQkfXH4smoY2v28DOZ_0uf_2=e8iEDSFbEbTMhU0JPuteOPw@mail.gmail.com>
2022-09-10 5:36 ` Greg Kroah-Hartman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=631b5aa8.170a0220.9378b.124a@mx.google.com \
--to=bozdemir@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox