summaryrefslogtreecommitdiff
path: root/net/atm
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@stusta.de>2005-04-21 16:48:26 -0700
committerDavid S. Miller <davem@sunset.davemloft.net>2005-04-21 16:48:26 -0700
commitebc37b611616ad46dce7d590b15ad655aa50213a (patch)
treee2fe9f2dcc4150555b0f42bc898d5e561bff7356 /net/atm
parent29c4be51e3fd52205d848248d38924941f22ca0e (diff)
downloadlwn-ebc37b611616ad46dce7d590b15ad655aa50213a.tar.gz
lwn-ebc37b611616ad46dce7d590b15ad655aa50213a.zip
[ATM]: net/atm/resources.c: remove __free_atm_dev
Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Chas Williams <chas@cmf.nrl.navy.mil> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/atm')
-rw-r--r--net/atm/resources.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/net/atm/resources.c b/net/atm/resources.c
index 33f1685dbb77..a57a9268bd24 100644
--- a/net/atm/resources.c
+++ b/net/atm/resources.c
@@ -44,11 +44,6 @@ static struct atm_dev *__alloc_atm_dev(const char *type)
return dev;
}
-static void __free_atm_dev(struct atm_dev *dev)
-{
- kfree(dev);
-}
-
static struct atm_dev *__atm_dev_lookup(int number)
{
struct atm_dev *dev;
@@ -90,7 +85,7 @@ struct atm_dev *atm_dev_register(const char *type, const struct atmdev_ops *ops,
if ((inuse = __atm_dev_lookup(number))) {
atm_dev_put(inuse);
spin_unlock(&atm_dev_lock);
- __free_atm_dev(dev);
+ kfree(dev);
return NULL;
}
dev->number = number;
@@ -119,7 +114,7 @@ struct atm_dev *atm_dev_register(const char *type, const struct atmdev_ops *ops,
spin_lock(&atm_dev_lock);
list_del(&dev->dev_list);
spin_unlock(&atm_dev_lock);
- __free_atm_dev(dev);
+ kfree(dev);
return NULL;
}
@@ -148,7 +143,7 @@ void atm_dev_deregister(struct atm_dev *dev)
}
}
- __free_atm_dev(dev);
+ kfree(dev);
}
void shutdown_atm_dev(struct atm_dev *dev)