diff options
author | Christophe Lucas <clucas@rotomalug.org> | 2005-11-12 13:58:53 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2005-11-16 14:13:20 -0500 |
commit | 5bc4c36d7cd9f1605efeade67b3d27845a4affcd (patch) | |
tree | e843b8935601345fb926bf979a31f43b34d44079 /drivers | |
parent | 4d791aadf63c9d605bc9a4144e79d5756fc29fb3 (diff) |
[PATCH] atmel: audit return code of create_proc_read_entry
Signed-off-by: Christophe Lucas <clucas@rotomalug.org>
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/atmel.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/wireless/atmel.c b/drivers/net/wireless/atmel.c index 050aa518d7d1..e4729ddf29fd 100644 --- a/drivers/net/wireless/atmel.c +++ b/drivers/net/wireless/atmel.c | |||
@@ -1511,6 +1511,7 @@ struct net_device *init_atmel_card(unsigned short irq, unsigned long port, | |||
1511 | struct device *sys_dev, | 1511 | struct device *sys_dev, |
1512 | int (*card_present)(void *), void *card) | 1512 | int (*card_present)(void *), void *card) |
1513 | { | 1513 | { |
1514 | struct proc_dir_entry *ent; | ||
1514 | struct net_device *dev; | 1515 | struct net_device *dev; |
1515 | struct atmel_private *priv; | 1516 | struct atmel_private *priv; |
1516 | int rc; | 1517 | int rc; |
@@ -1624,7 +1625,9 @@ struct net_device *init_atmel_card(unsigned short irq, unsigned long port, | |||
1624 | 1625 | ||
1625 | netif_carrier_off(dev); | 1626 | netif_carrier_off(dev); |
1626 | 1627 | ||
1627 | create_proc_read_entry ("driver/atmel", 0, NULL, atmel_read_proc, priv); | 1628 | ent = create_proc_read_entry ("driver/atmel", 0, NULL, atmel_read_proc, priv); |
1629 | if (!ent) | ||
1630 | printk(KERN_WARNING "atmel: unable to create /proc entry.\n"); | ||
1628 | 1631 | ||
1629 | printk(KERN_INFO "%s: Atmel at76c50x. Version %d.%d. MAC %.2x:%.2x:%.2x:%.2x:%.2x:%.2x\n", | 1632 | printk(KERN_INFO "%s: Atmel at76c50x. Version %d.%d. MAC %.2x:%.2x:%.2x:%.2x:%.2x:%.2x\n", |
1630 | dev->name, DRIVER_MAJOR, DRIVER_MINOR, | 1633 | dev->name, DRIVER_MAJOR, DRIVER_MINOR, |