diff options
author | Julian Wiedmann <jwi@linux.ibm.com> | 2021-11-15 08:21:38 +0100 |
---|---|---|
committer | Heiko Carstens <hca@linux.ibm.com> | 2021-12-06 14:42:25 +0100 |
commit | 0a86cdcb4ce297f543d13d0bbd4f0c86f00626e5 (patch) | |
tree | 8453e680cd5c29950f999a3354ad519f3018734f /drivers/s390 | |
parent | 718ce9e10171f70f2d00c3c89ceb7e406a892bb6 (diff) | |
download | linux-0a86cdcb4ce297f543d13d0bbd4f0c86f00626e5.tar.bz2 |
s390/qdio: clean up access to queue in qdio_handle_activate_check()
qdio_handle_activate_check() re-uses a queue-specific handler to report
that the ACTIVATE ccw has been terminated. It uses either the first
input or output queue, so we can hard-code q->nr as 0. Also don't
access the q->irq_ptr parent pointer, we already have a pointer to
the qdio_irq.
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Reviewed-by: Benjamin Block <bblock@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'drivers/s390')
-rw-r--r-- | drivers/s390/cio/qdio_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/s390/cio/qdio_main.c b/drivers/s390/cio/qdio_main.c index 9b48573db93d..3e586e460f91 100644 --- a/drivers/s390/cio/qdio_main.c +++ b/drivers/s390/cio/qdio_main.c @@ -669,8 +669,8 @@ static void qdio_handle_activate_check(struct qdio_irq *irq_ptr, goto no_handler; } - q->handler(q->irq_ptr->cdev, QDIO_ERROR_ACTIVATE, - q->nr, q->first_to_check, 0, irq_ptr->int_parm); + q->handler(irq_ptr->cdev, QDIO_ERROR_ACTIVATE, 0, q->first_to_check, + 0, irq_ptr->int_parm); no_handler: qdio_set_state(irq_ptr, QDIO_IRQ_STATE_STOPPED); /* |