s390/qeth: use QDIO_*_QFMT defines
authorJulian Wiedmann <jwi@linux.vnet.ibm.com>
Fri, 7 Apr 2017 07:15:32 +0000 (09:15 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Apr 2017 12:52:51 +0000 (05:52 -0700)
better use the constant definitions.

Signed-off-by: Julian Wiedmann <jwi@linux.vnet.ibm.com>
Signed-off-by: Ursula Braun <ubraun@linux.vnet.ibm.com>
Reviewed-by: Thomas Richter <tmricht@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/s390/net/qeth_core_main.c

index 9a5f99ccb122bab3918f136f403bdec04b98d2f4..7142204293b080ed866b3d15cc2160e514aa91a6 100644 (file)
@@ -4775,12 +4775,10 @@ static int qeth_query_card_info(struct qeth_card *card,
 
 static inline int qeth_get_qdio_q_format(struct qeth_card *card)
 {
-       switch (card->info.type) {
-       case QETH_CARD_TYPE_IQD:
-               return 2;
-       default:
-               return 0;
-       }
+       if (card->info.type == QETH_CARD_TYPE_IQD)
+               return QDIO_IQDIO_QFMT;
+       else
+               return QDIO_QETH_QFMT;
 }
 
 static void qeth_determine_capabilities(struct qeth_card *card)