drivers/net: eliminate irq handler impossible checks, needless casts
[deliverable/linux.git] / drivers / net / irda / nsc-ircc.c
index ea12e999814ab96916ca4ccbea1b773c5360c285..29b5ccd29d0bbcca3a7d7e78cf352da4848a9d3a 100644 (file)
@@ -2068,17 +2068,12 @@ static void nsc_ircc_fir_interrupt(struct nsc_ircc_cb *self, int iobase,
  */
 static irqreturn_t nsc_ircc_interrupt(int irq, void *dev_id)
 {
-       struct net_device *dev = (struct net_device *) dev_id;
+       struct net_device *dev = dev_id;
        struct nsc_ircc_cb *self;
        __u8 bsr, eir;
        int iobase;
 
-       if (!dev) {
-               IRDA_WARNING("%s: irq %d for unknown device.\n",
-                            driver_name, irq);
-               return IRQ_NONE;
-       }
-       self = (struct nsc_ircc_cb *) dev->priv;
+       self = dev->priv;
 
        spin_lock(&self->lock); 
 
This page took 0.025462 seconds and 5 git commands to generate.