Skip to content

Commit

Permalink
qeth: get rid of redundant 0-termination
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rasmus Villemoes authored and David S. Miller committed Dec 14, 2015
1 parent 5777773 commit 476933c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/s390/net/qeth_core_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 476933c

Please sign in to comment.