Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 356
b: refs/heads/master
c: ebc37b6
h: refs/heads/master
v: v3
  • Loading branch information
Adrian Bunk authored and David S. Miller committed Apr 21, 2005
1 parent b21ad49 commit 3328e22
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 29c4be51e3fd52205d848248d38924941f22ca0e
refs/heads/master: ebc37b611616ad46dce7d590b15ad655aa50213a
11 changes: 3 additions & 8 deletions trunk/net/atm/resources.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 3328e22

Please sign in to comment.