projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
036695a
)
staging: fwserial: minor coding style fix
author
Lee Gibson
<leegib@gmail.com>
Fri, 26 Feb 2021 11:48:00 +0000
(11:48 +0000)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 10 Mar 2021 08:25:31 +0000
(09:25 +0100)
Fixes this checkpatch warning
WARNING: Integer promotion: Using 'h' in '%04hx' is unnecessary
Signed-off-by: Lee Gibson <leegib@gmail.com>
Link:
https://lore.kernel.org/r/20210226114800.316897-1-leegib@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fwserial/fwserial.c
patch
|
blob
|
history
diff --git
a/drivers/staging/fwserial/fwserial.c
b/drivers/staging/fwserial/fwserial.c
index
137e97c
..
2cc461b
100644
(file)
--- a/
drivers/staging/fwserial/fwserial.c
+++ b/
drivers/staging/fwserial/fwserial.c
@@
-2632,7
+2632,7
@@
static int fwserial_parse_mgmt_write(struct fwtty_peer *peer,
rcode = RCODE_COMPLETE;
- fwtty_dbg(&peer->unit, "mgmt: hdr.code: %04
h
x\n", pkt->hdr.code);
+ fwtty_dbg(&peer->unit, "mgmt: hdr.code: %04x\n", pkt->hdr.code);
switch (be16_to_cpu(pkt->hdr.code) & FWSC_CODE_MASK) {
case FWSC_VIRT_CABLE_PLUG: