]> git.baikalelectronics.ru Git - kernel.git/commitdiff
s390/qeth: use to_delayed_work()
authorJulian Wiedmann <jwi@linux.ibm.com>
Thu, 27 Aug 2020 08:16:59 +0000 (10:16 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Aug 2020 14:42:03 +0000 (07:42 -0700)
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>
drivers/s390/net/qeth_core_main.c

index bba1b54b8aa390ee910b96418eab8b4747bf84ea..5742a682a193de619de026db95b048b05cbd2f8e 100644 (file)
@@ -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);