staging: et131x: Remove dead code in isr
authorMark Einon <mark.einon@gmail.com>
Wed, 3 Sep 2014 21:40:54 +0000 (22:40 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Sep 2014 20:47:00 +0000 (13:47 -0700)
commitbe40a261aa52912b3e708e34383f0f0afb10d212
tree8896b86d234ebaff62c20c7d18f7e226d063ed7e
parent99cbb4de442d4e72e73031c60a2fb7a9a9f986f0
staging: et131x: Remove dead code in isr

Dan Carpenter reports:
The patch c2ebf58ba089: "staging: et131x: Implement NAPI support"
from Aug 21, 2014, leads to the following static checker warning:

        drivers/staging/et131x/et131x.c:4004 et131x_isr()
        warn: we tested 'status' before and it was 'true'

We don't actually need the dead code, as we're now using NAPI to
handle enabling interrupts - but we do need to enable interrupts if
NAPI is not scheduled - so enable interrupts if this is the case.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mark Einon <mark.einon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/et131x/et131x.c