Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 122788
b: refs/heads/master
c: ab5024a
h: refs/heads/master
v: v3
  • Loading branch information
Cyrill Gorcunov authored and David S. Miller committed Dec 19, 2008
1 parent 9c8d576 commit 11f5cd2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 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: a109a5b916bc180e14fad0d1e9c37a08c85652c0
refs/heads/master: ab5024ab23b78c86a0a1425defcdde48710fe449
6 changes: 2 additions & 4 deletions trunk/drivers/net/ppp_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ struct channel {
*/
static DEFINE_MUTEX(all_ppp_mutex);
static atomic_t ppp_unit_count = ATOMIC_INIT(0);
static struct idr ppp_units_idr;
static DEFINE_IDR(ppp_units_idr);

/*
* all_channels_lock protects all_channels and last_channel_index,
Expand Down Expand Up @@ -852,8 +852,6 @@ static int __init ppp_init(void)
"ppp");
}

idr_init(&ppp_units_idr);

out:
if (err)
printk(KERN_ERR "failed to register PPP device (%d)\n", err);
Expand Down Expand Up @@ -2435,7 +2433,7 @@ ppp_create_interface(int unit, int *retp)
if (unit_find(&ppp_units_idr, unit))
goto out2; /* unit already exists */
else {
/* darn, someone is cheatting us? */
/* darn, someone is cheating us? */
*retp = -EINVAL;
goto out2;
}
Expand Down

0 comments on commit 11f5cd2

Please sign in to comment.