staging: dgnc: remove redundant condition check
authorDaeseok Youn <daeseok.youn@gmail.com>
Mon, 9 May 2016 02:47:11 +0000 (11:47 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 May 2016 12:10:03 +0000 (14:10 +0200)
dgnc_board(brd) was already checked for NULL before calling
neo_parse_isr(). And also port doesn't need to check.

Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgnc/dgnc_neo.c

index 3b8ce38..9eae1a6 100644 (file)
@@ -379,12 +379,6 @@ static inline void neo_parse_isr(struct dgnc_board *brd, uint port)
        unsigned char cause;
        unsigned long flags;
 
-       if (!brd || brd->magic != DGNC_BOARD_MAGIC)
-               return;
-
-       if (port >= brd->maxports)
-               return;
-
        ch = brd->channels[port];
        if (ch->magic != DGNC_CHANNEL_MAGIC)
                return;