s390: print correct level for HiperSockets devices
authorUrsula Braun <braunu@de.ibm.com>
Wed, 20 Jun 2007 10:55:18 +0000 (12:55 +0200)
committerJeff Garzik <jeff@garzik.org>
Wed, 20 Jun 2007 23:12:41 +0000 (19:12 -0400)
For real HiperSockets the EBCDIC-ASCII conversion is not necessary.
This is only needed for z/VM GuestLAN devices.

Signed-off-by: Ursula Braun <braunu@de.ibm.com>
Signed-off-by: Frank Pavlic <fpavlic@de.ibm.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/s390/net/qeth_main.c

index 0b96d49dd636bc55f6f8f8f360472ab9c18fede1..ea2fd980cb4595023141aba4acfc9ab8d5481ea1 100644 (file)
@@ -7797,15 +7797,17 @@ qeth_print_status_message(struct qeth_card *card)
                }
                /* fallthrough */
        case QETH_CARD_TYPE_IQD:
-               card->info.mcl_level[0] = (char) _ebcasc[(__u8)
-                       card->info.mcl_level[0]];
-               card->info.mcl_level[1] = (char) _ebcasc[(__u8)
-                       card->info.mcl_level[1]];
-               card->info.mcl_level[2] = (char) _ebcasc[(__u8)
-                       card->info.mcl_level[2]];
-               card->info.mcl_level[3] = (char) _ebcasc[(__u8)
-                       card->info.mcl_level[3]];
-               card->info.mcl_level[QETH_MCL_LENGTH] = 0;
+               if (card->info.guestlan) {
+                       card->info.mcl_level[0] = (char) _ebcasc[(__u8)
+                               card->info.mcl_level[0]];
+                       card->info.mcl_level[1] = (char) _ebcasc[(__u8)
+                               card->info.mcl_level[1]];
+                       card->info.mcl_level[2] = (char) _ebcasc[(__u8)
+                               card->info.mcl_level[2]];
+                       card->info.mcl_level[3] = (char) _ebcasc[(__u8)
+                               card->info.mcl_level[3]];
+                       card->info.mcl_level[QETH_MCL_LENGTH] = 0;
+               }
                break;
        default:
                memset(&card->info.mcl_level[0], 0, QETH_MCL_LENGTH + 1);