diff options
author | Klaus-Dieter Wacker <kdwacker@de.ibm.com> | 2009-08-25 22:01:09 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-08-26 20:34:20 -0400 |
commit | 0d788c7d285a91ef72a7b436dbe753d117856b3d (patch) | |
tree | 1afc88e495d3455ea9fe83840e79b155f9de6109 /drivers | |
parent | ce73e10ee0cb6cde1c5075a2803da0f0eb5b2324 (diff) |
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: Klaus-Dieter Wacker <kdwacker@de.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/s390/net/qeth_core_main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/s390/net/qeth_core_main.c b/drivers/s390/net/qeth_core_main.c index 1560bb621a3b..c4a42d970158 100644 --- a/drivers/s390/net/qeth_core_main.c +++ b/drivers/s390/net/qeth_core_main.c | |||
@@ -1160,8 +1160,9 @@ static void qeth_core_sl_print(struct seq_file *m, struct service_level *slr) | |||
1160 | { | 1160 | { |
1161 | struct qeth_card *card = container_of(slr, struct qeth_card, | 1161 | struct qeth_card *card = container_of(slr, struct qeth_card, |
1162 | qeth_service_level); | 1162 | qeth_service_level); |
1163 | seq_printf(m, "qeth: %s firmware level %s\n", CARD_BUS_ID(card), | 1163 | if (card->info.mcl_level[0]) |
1164 | card->info.mcl_level); | 1164 | seq_printf(m, "qeth: %s firmware level %s\n", |
1165 | CARD_BUS_ID(card), card->info.mcl_level); | ||
1165 | } | 1166 | } |
1166 | 1167 | ||
1167 | static struct qeth_card *qeth_alloc_card(void) | 1168 | static struct qeth_card *qeth_alloc_card(void) |