drivers/net: eliminate irq handler impossible checks, needless casts
[deliverable/linux.git] / drivers / net / wan / cycx_main.c
index 12363e056b63b83e6fb7a5655007bb119db4acd4..6e5f1c89851713f12ce45aaab040f36ca406d93d 100644 (file)
@@ -303,9 +303,9 @@ out:        return ret;
  */
 static irqreturn_t cycx_isr(int irq, void *dev_id)
 {
-       struct cycx_device *card = (struct cycx_device *)dev_id;
+       struct cycx_device *card = dev_id;
 
-       if (!card || card->wandev.state == WAN_UNCONFIGURED)
+       if (card->wandev.state == WAN_UNCONFIGURED)
                goto out;
 
        if (card->in_isr) {
This page took 0.02704 seconds and 5 git commands to generate.