Various drivers' irq handlers: kill dead code, needless casts
[linux-drm-fsl-dcu.git] / drivers / char / riscom8.c
index be68cfb0ae69d97fb2511528bc222a5afe4a9bf6..5ab32b38f45a28f55737c1b88ead868d299671ea 100644 (file)
@@ -559,11 +559,10 @@ static irqreturn_t rc_interrupt(int irq, void * dev_id)
        int handled = 0;
 
        bp = IRQ_to_board[irq];
-       
-       if (!bp || !(bp->flags & RC_BOARD_ACTIVE))  {
+
+       if (!(bp->flags & RC_BOARD_ACTIVE))
                return IRQ_NONE;
-       }
-       
+
        while ((++loop < 16) && ((status = ~(rc_in(bp, RC_BSR))) &
                                 (RC_BSR_TOUT | RC_BSR_TINT |
                                  RC_BSR_MINT | RC_BSR_RINT))) {