diff options
author | Jeff Garzik <jeff@garzik.org> | 2006-10-06 22:56:04 +0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-10-06 22:56:04 +0400 |
commit | c31f28e778ab299a5035ea2bda64f245b8915d7c (patch) | |
tree | 92d1070b0ae0c3528ab2c8787c4402fd8adf5a5f /drivers/net/wan/cycx_main.c | |
parent | 86d91bab4806191a8126502d80d729c2a4765ebe (diff) | |
download | linux-c31f28e778ab299a5035ea2bda64f245b8915d7c.tar.xz |
drivers/net: eliminate irq handler impossible checks, needless casts
- Eliminate check for irq handler 'dev_id==NULL' where the
condition never occurs.
- Eliminate needless casts to/from void*
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/wan/cycx_main.c')
-rw-r--r-- | drivers/net/wan/cycx_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wan/cycx_main.c b/drivers/net/wan/cycx_main.c index 12363e056b63..6e5f1c898517 100644 --- a/drivers/net/wan/cycx_main.c +++ b/drivers/net/wan/cycx_main.c @@ -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) { |