Skip to contentSkip to conversation

staging: dgnc: remove redundant condition check

PATCH New Daeseok Youn 1 participant 1 message May 9, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/3 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.

---
 drivers/staging/dgnc/dgnc_neo.c | 6 ------
 1 file changed, 6 deletions(-)
drivers/staging/dgnc/dgnc_neo.c +0 -6
index 3b8ce38..9eae1a6 100644
@@ -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;
Signature · 1 line
2.8.2