Commit a226cc99 authored by Kai Germaschewski's avatar Kai Germaschewski

ISDN: Fix some typos

Embarrassing, but the compiler doesn't warn unless CONFIG_SMP is
set.
parent 2ae559ff
...@@ -138,9 +138,9 @@ ipppd_open(struct inode *ino, struct file *file) ...@@ -138,9 +138,9 @@ ipppd_open(struct inode *ino, struct file *file)
init_waitqueue_head(&ipppd->wq); init_waitqueue_head(&ipppd->wq);
skb_queue_head_init(&ipppd->rq); skb_queue_head_init(&ipppd->rq);
spin_lock_irqsave(&ipppds, flags); spin_lock_irqsave(&ipppds_lock, flags);
list_add(&ipppd->ipppds, &ipppds); list_add(&ipppd->ipppds, &ipppds);
spin_unlock_irqrestore(&ipppds, flags); spin_unlock_irqrestore(&ipppds_lock, flags);
ipppd_debug(ipppd, "minor %d", minor); ipppd_debug(ipppd, "minor %d", minor);
...@@ -160,9 +160,9 @@ ipppd_release(struct inode *ino, struct file *file) ...@@ -160,9 +160,9 @@ ipppd_release(struct inode *ino, struct file *file)
if (ipppd->state == IPPPD_ST_CONNECTED) if (ipppd->state == IPPPD_ST_CONNECTED)
isdn_net_hangup(ipppd->idev); isdn_net_hangup(ipppd->idev);
spin_lock_irqsave(&ipppds, flags); spin_lock_irqsave(&ipppds_lock, flags);
list_del(&ipppd->ipppds); list_del(&ipppd->ipppds);
spin_unlock_irqrestore(&ipppds, flags); spin_unlock_irqrestore(&ipppds_lock, flags);
ipppd_put(ipppd); ipppd_put(ipppd);
...@@ -676,7 +676,7 @@ isdn_ppp_bind(isdn_net_dev *idev) ...@@ -676,7 +676,7 @@ isdn_ppp_bind(isdn_net_dev *idev)
return -ENOMEM; return -ENOMEM;
spin_lock_irqsave(&ipppds_lock, flags); spin_lock_irqsave(&ipppds_lock, flags);
if (idev->pppbind < 0) { /* device bound to ippp device ? */ if (idev->pppbind < 0) { /* device not bound to ippp device ? */
struct list_head *l; struct list_head *l;
char exclusive[ISDN_MAX_CHANNELS]; /* exclusive flags */ char exclusive[ISDN_MAX_CHANNELS]; /* exclusive flags */
memset(exclusive, 0, ISDN_MAX_CHANNELS); memset(exclusive, 0, ISDN_MAX_CHANNELS);
...@@ -695,7 +695,6 @@ isdn_ppp_bind(isdn_net_dev *idev) ...@@ -695,7 +695,6 @@ isdn_ppp_bind(isdn_net_dev *idev)
if (ipppd->state != IPPPD_ST_OPEN) if (ipppd->state != IPPPD_ST_OPEN)
continue; continue;
if (!exclusive[ipppd->minor]) if (!exclusive[ipppd->minor])
break;
goto found; goto found;
} }
} else { } else {
......
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