diff options
author | Julian Wiedmann <jwi@linux.ibm.com> | 2019-04-25 18:25:57 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-04-26 11:14:06 -0400 |
commit | 379ac99e5192f98c560b22ae2a3dbaa97c043cc8 (patch) | |
tree | 9fb377b3255290cd0f86a2ba53604067ff630326 /drivers/s390/net/qeth_core_sys.c | |
parent | 5c0bfba780ba96a2e656abfa677155c935153aaa (diff) | |
download | blackbird-op-linux-379ac99e5192f98c560b22ae2a3dbaa97c043cc8.tar.gz blackbird-op-linux-379ac99e5192f98c560b22ae2a3dbaa97c043cc8.zip |
s390/qeth: use IS_* helpers for checking device type
We have helper macros for all possible device types, replace all
remaining open-coded accesses to the type fields.
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/s390/net/qeth_core_sys.c')
-rw-r--r-- | drivers/s390/net/qeth_core_sys.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/s390/net/qeth_core_sys.c b/drivers/s390/net/qeth_core_sys.c index cea4a0bbc303..9f392497d570 100644 --- a/drivers/s390/net/qeth_core_sys.c +++ b/drivers/s390/net/qeth_core_sys.c @@ -479,8 +479,7 @@ static ssize_t qeth_dev_isolation_store(struct device *dev, return -EINVAL; mutex_lock(&card->conf_mutex); - if (card->info.type != QETH_CARD_TYPE_OSD && - card->info.type != QETH_CARD_TYPE_OSX) { + if (!IS_OSD(card) && !IS_OSX(card)) { rc = -EOPNOTSUPP; dev_err(&card->gdev->dev, "Adapter does not " "support QDIO data connection isolation\n"); |