mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <ahmad@a3f.at>
To: barebox@lists.infradead.org
Subject: [PATCH] input: specialkeys: remove unused printk argument
Date: Tue,  1 Oct 2019 08:24:30 +0200	[thread overview]
Message-ID: <20191001062430.804-1-ahmad@a3f.at> (raw)

Two pr_info calls have no format specifiers, but are still passed an
argument. Remove the unused arguments.

Signed-off-by: Ahmad Fatoum <ahmad@a3f.at>
---
 drivers/input/specialkeys.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/input/specialkeys.c b/drivers/input/specialkeys.c
index ff29b8455d7a..a3f2bf4e4f48 100644
--- a/drivers/input/specialkeys.c
+++ b/drivers/input/specialkeys.c
@@ -13,12 +13,12 @@ static void input_specialkeys_notify(struct input_notifier *in,
 {
 	switch (ev->code) {
 	case KEY_RESTART:
-		pr_info("Triggering reset due to special key.\n", ev->code);
+		pr_info("Triggering reset due to special key.\n");
 		restart_machine();
 		break;
 
 	case KEY_POWER:
-		pr_info("Triggering poweroff due to special key.\n", ev->code);
+		pr_info("Triggering poweroff due to special key.\n");
 		poweroff_machine();
 		break;
 	}
-- 
2.20.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

             reply	other threads:[~2019-10-01  6:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-01  6:24 Ahmad Fatoum [this message]
2019-10-02  6:44 ` Sascha Hauer

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=20191001062430.804-1-ahmad@a3f.at \
    --to=ahmad@a3f.at \
    --cc=barebox@lists.infradead.org \
    /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