summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDaeseok Youn <daeseok.youn@gmail.com>2016-05-09 11:47:11 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-05-09 14:10:03 +0200
commitc246e2305aa2a70d720b4d50427d25bf786de7e6 (patch)
treea814fbcafa4909297c0d644519c18738b9167263 /drivers
parentedd19a2f9fd85824d7ae2ca24b7f04f2b8fa0920 (diff)
downloadblackbird-op-linux-c246e2305aa2a70d720b4d50427d25bf786de7e6.tar.gz
blackbird-op-linux-c246e2305aa2a70d720b4d50427d25bf786de7e6.zip
staging: dgnc: remove redundant condition check
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/dgnc/dgnc_neo.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/staging/dgnc/dgnc_neo.c b/drivers/staging/dgnc/dgnc_neo.c
index 3b8ce38b2242..9eae1a695980 100644
--- a/drivers/staging/dgnc/dgnc_neo.c
+++ b/drivers/staging/dgnc/dgnc_neo.c
@@ -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;
OpenPOWER on IntegriCloud