]> git.baikalelectronics.ru Git - kernel.git/commit
s390/qeth: remove redundant if-clause in RX poll code
authorJulian Wiedmann <jwi@linux.ibm.com>
Wed, 25 Mar 2020 09:34:59 +0000 (10:34 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Mar 2020 19:07:15 +0000 (12:07 -0700)
commit23e604bdca7b576ac574ae2e33270c013e2bb301
tree3e47f63227090c87c2e2c80828030a61d8dd005c
parent13d3462375027b3344b3456e21d88d43fb558cfc
s390/qeth: remove redundant if-clause in RX poll code

Whenever all completed RX buffers have been processed
(ie. rx->b_count == 0), we call down to the HW layer to scan for
additional buffers. If no further buffers are available, the code
breaks out of the while-loop.

So we never reach the 'process an RX buffer' step with rx->b_count == 0,
eliminate that check and one level of indentation.

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