Commit aa59004b authored by Julian Wiedmann's avatar Julian Wiedmann Committed by David S. Miller

s390/qeth: use QDIO_*_QFMT defines

better use the constant definitions.
Signed-off-by: default avatarJulian Wiedmann <jwi@linux.vnet.ibm.com>
Signed-off-by: default avatarUrsula Braun <ubraun@linux.vnet.ibm.com>
Reviewed-by: default avatarThomas Richter <tmricht@linux.vnet.ibm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 45e60cb3
...@@ -4775,12 +4775,10 @@ static int qeth_query_card_info(struct qeth_card *card, ...@@ -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) static inline int qeth_get_qdio_q_format(struct qeth_card *card)
{ {
switch (card->info.type) { if (card->info.type == QETH_CARD_TYPE_IQD)
case QETH_CARD_TYPE_IQD: return QDIO_IQDIO_QFMT;
return 2; else
default: return QDIO_QETH_QFMT;
return 0;
}
} }
static void qeth_determine_capabilities(struct qeth_card *card) static void qeth_determine_capabilities(struct qeth_card *card)
......
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