Skip to contentSkip to conversation

input: specialkeys: remove unused printk argument

PATCH Applied Ahmad Fatoum 2 participants 2 messages Oct 1, 2019 – Oct 2, 2019 Input drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 input: specialkeys: remove unused printk argument

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

---
 drivers/input/specialkeys.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/input/specialkeys.c +2 -2
index ff29b8455d7a..a3f2bf4e4f48 100644
@@ -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;
 	}
Signature · 7 lines
2.20.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Applied
#1 lore raw
Quoted 7 lines · Ahmad Fatoum

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

---
 drivers/input/specialkeys.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Applied, thanks

Sascha

Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox