diff options
author | Julian Wiedmann <jwi@linux.ibm.com> | 2020-08-27 10:16:59 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-08-27 07:42:03 -0700 |
commit | beaadcc6470319ef3006bbc2d075e021987b8487 (patch) | |
tree | f1113871c6b4f0fa1825a1a3c39d70a87c00ca8f /drivers/s390/net | |
parent | b14912eb4b897683d25b8473caebb014b5d36359 (diff) |
s390/qeth: use to_delayed_work()
Avoid poking around in the delayed_work struct's internals.
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/s390/net')
-rw-r--r-- | drivers/s390/net/qeth_core_main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/s390/net/qeth_core_main.c b/drivers/s390/net/qeth_core_main.c index bba1b54b8aa3..5742a682a193 100644 --- a/drivers/s390/net/qeth_core_main.c +++ b/drivers/s390/net/qeth_core_main.c @@ -3549,8 +3549,9 @@ static unsigned int qeth_rx_refill_queue(struct qeth_card *card, static void qeth_buffer_reclaim_work(struct work_struct *work) { - struct qeth_card *card = container_of(work, struct qeth_card, - buffer_reclaim_work.work); + struct qeth_card *card = container_of(to_delayed_work(work), + struct qeth_card, + buffer_reclaim_work); local_bh_disable(); napi_schedule(&card->napi); |