Commit ebc37b61 authored by Adrian Bunk's avatar Adrian Bunk Committed by David S. Miller

[ATM]: net/atm/resources.c: remove __free_atm_dev

Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
Signed-off-by: default avatarChas Williams <chas@cmf.nrl.navy.mil>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 29c4be51
...@@ -44,11 +44,6 @@ static struct atm_dev *__alloc_atm_dev(const char *type) ...@@ -44,11 +44,6 @@ static struct atm_dev *__alloc_atm_dev(const char *type)
return dev; return dev;
} }
static void __free_atm_dev(struct atm_dev *dev)
{
kfree(dev);
}
static struct atm_dev *__atm_dev_lookup(int number) static struct atm_dev *__atm_dev_lookup(int number)
{ {
struct atm_dev *dev; struct atm_dev *dev;
...@@ -90,7 +85,7 @@ struct atm_dev *atm_dev_register(const char *type, const struct atmdev_ops *ops, ...@@ -90,7 +85,7 @@ struct atm_dev *atm_dev_register(const char *type, const struct atmdev_ops *ops,
if ((inuse = __atm_dev_lookup(number))) { if ((inuse = __atm_dev_lookup(number))) {
atm_dev_put(inuse); atm_dev_put(inuse);
spin_unlock(&atm_dev_lock); spin_unlock(&atm_dev_lock);
__free_atm_dev(dev); kfree(dev);
return NULL; return NULL;
} }
dev->number = number; dev->number = number;
...@@ -119,7 +114,7 @@ struct atm_dev *atm_dev_register(const char *type, const struct atmdev_ops *ops, ...@@ -119,7 +114,7 @@ struct atm_dev *atm_dev_register(const char *type, const struct atmdev_ops *ops,
spin_lock(&atm_dev_lock); spin_lock(&atm_dev_lock);
list_del(&dev->dev_list); list_del(&dev->dev_list);
spin_unlock(&atm_dev_lock); spin_unlock(&atm_dev_lock);
__free_atm_dev(dev); kfree(dev);
return NULL; return NULL;
} }
...@@ -148,7 +143,7 @@ void atm_dev_deregister(struct atm_dev *dev) ...@@ -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) void shutdown_atm_dev(struct atm_dev *dev)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment