diff options
author | Jesper Juhl <juhl-lkml@dif.dk> | 2005-06-02 13:04:07 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-06-02 13:04:07 -0700 |
commit | a2c1aa54746bace5d03cc66521fbf3bb6fb2f916 (patch) | |
tree | 9f9e535060b9a9690c432845a9c6ee3929bef9b2 /drivers/atm/he.c | |
parent | 3087e1ff8d64da7b6b527e89d0c0864ab36294b8 (diff) | |
download | linux-a2c1aa54746bace5d03cc66521fbf3bb6fb2f916.tar.gz linux-a2c1aa54746bace5d03cc66521fbf3bb6fb2f916.tar.bz2 linux-a2c1aa54746bace5d03cc66521fbf3bb6fb2f916.zip |
[ATM]: [drivers] kill pointless NULL checks and casts before kfree()
Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk>
Signed-off-by: Chas Williams <chas@cmf.nrl.navy.mil>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/atm/he.c')
-rw-r--r-- | drivers/atm/he.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/atm/he.c b/drivers/atm/he.c index 3022c548a132..df2c83fd5496 100644 --- a/drivers/atm/he.c +++ b/drivers/atm/he.c @@ -412,8 +412,7 @@ he_init_one(struct pci_dev *pci_dev, const struct pci_device_id *pci_ent) init_one_failure: if (atm_dev) atm_dev_deregister(atm_dev); - if (he_dev) - kfree(he_dev); + kfree(he_dev); pci_disable_device(pci_dev); return err; } @@ -2534,8 +2533,7 @@ he_open(struct atm_vcc *vcc) open_failed: if (err) { - if (he_vcc) - kfree(he_vcc); + kfree(he_vcc); clear_bit(ATM_VF_ADDR, &vcc->flags); } else |