projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5777773
)
qeth: get rid of redundant 0-termination
author
Rasmus Villemoes
<linux@rasmusvillemoes.dk>
Fri, 11 Dec 2015 11:27:57 +0000
(12:27 +0100)
committer
David S. Miller
<davem@davemloft.net>
Mon, 14 Dec 2015 21:16:45 +0000
(16:16 -0500)
0-termination is redundant, since sprintf has done that.
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Ursula Braun <ubraun@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/s390/net/qeth_core_main.c
patch
|
blob
|
history
diff --git
a/drivers/s390/net/qeth_core_main.c
b/drivers/s390/net/qeth_core_main.c
index fe1845acf560fc5b6408ed4ed9a08382f9801445..787153764120cc8db03ef577cb485ffa765b7735 100644
(file)
--- a/
drivers/s390/net/qeth_core_main.c
+++ b/
drivers/s390/net/qeth_core_main.c
@@
-2684,8
+2684,6
@@
void qeth_print_status_message(struct qeth_card *card)
sprintf(card->info.mcl_level, "%02x%02x",
card->info.mcl_level[2],
card->info.mcl_level[3]);
-
- card->info.mcl_level[QETH_MCL_LENGTH] = 0;
break;
}
/* fallthrough */