Commit 0d788c7d authored by Klaus-Dieter Wacker's avatar Klaus-Dieter Wacker Committed by David S. Miller

qeth: display service_level info only when valid.

qeth displayed an entry in /proc/service_level even when no valid
MCL-string was available (the MCL info is blank). The change is to
create an entry in /proc/service_level only when MCL-string is
non-zero.
Signed-off-by: default avatarKlaus-Dieter Wacker <kdwacker@de.ibm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ce73e10e
...@@ -1160,8 +1160,9 @@ static void qeth_core_sl_print(struct seq_file *m, struct service_level *slr) ...@@ -1160,8 +1160,9 @@ static void qeth_core_sl_print(struct seq_file *m, struct service_level *slr)
{ {
struct qeth_card *card = container_of(slr, struct qeth_card, struct qeth_card *card = container_of(slr, struct qeth_card,
qeth_service_level); qeth_service_level);
seq_printf(m, "qeth: %s firmware level %s\n", CARD_BUS_ID(card), if (card->info.mcl_level[0])
card->info.mcl_level); seq_printf(m, "qeth: %s firmware level %s\n",
CARD_BUS_ID(card), card->info.mcl_level);
} }
static struct qeth_card *qeth_alloc_card(void) static struct qeth_card *qeth_alloc_card(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment