diff options
author | Julian Wiedmann <jwi@linux.ibm.com> | 2020-03-18 13:54:54 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-03-18 16:33:35 -0700 |
commit | 5bcd8ad9768391b59768f249c40a5ba34e5e43c6 (patch) | |
tree | 4403dd4774743bc81856722259640ab0031cfbb2 /drivers/s390/net/qeth_l2_main.c | |
parent | 86e7a4e4afd5bb3b852f37fc8cb61bac2a1f19ce (diff) |
s390/qeth: remove gratuitous NULL checks
qeth_do_ioctl() is only reached through our own net_device_ops, so we
can trust that dev->ml_priv still contains what we put there earlier.
qeth_bridgeport_an_set() is an internal function that doesn't require
such sanity checks.
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_l2_main.c')
-rw-r--r-- | drivers/s390/net/qeth_l2_main.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/s390/net/qeth_l2_main.c b/drivers/s390/net/qeth_l2_main.c index 71eb2d9bfbb7..2aaf5e3779ce 100644 --- a/drivers/s390/net/qeth_l2_main.c +++ b/drivers/s390/net/qeth_l2_main.c @@ -1519,8 +1519,6 @@ int qeth_bridgeport_an_set(struct qeth_card *card, int enable) struct ccw_device *ddev; struct subchannel_id schid; - if (!card) - return -EINVAL; if (!card->options.sbp.supported_funcs) return -EOPNOTSUPP; ddev = CARD_DDEV(card); |