Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

s390/qdio: remove unneeded sanity check in qdio_do_sqbs()

All callers of set_buf_states() are already making sure that 'count'
is not 0. So don't check it an additional time.

Note that our own code also doesn't _require_ the count to be sane
(ie. we can't overrun an array or similar). So worst case HW would
simply reject the SQBS operation and report an error.

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>

authored by

Julian Wiedmann and committed by
Heiko Carstens
e628f287 568de506

-2
-2
drivers/s390/cio/qdio_main.c
··· 170 170 int tmp_count = count, tmp_start = start; 171 171 int nr = q->nr; 172 172 173 - if (!count) 174 - return 0; 175 173 qperf_inc(q, sqbs); 176 174 177 175 if (!q->is_input_q)