git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Staging: me4000: return is not a function, no parentheses required
[safe/jmp/linux-2.6]
/
drivers
/
net
/
ppp_synctty.c
diff --git
a/drivers/net/ppp_synctty.c
b/drivers/net/ppp_synctty.c
index
3ea791d
..
d2fa2db
100644
(file)
--- a/
drivers/net/ppp_synctty.c
+++ b/
drivers/net/ppp_synctty.c
@@
-206,6
+206,7
@@
ppp_sync_open(struct tty_struct *tty)
{
struct syncppp *ap;
int err;
{
struct syncppp *ap;
int err;
+ int speed;
if (tty->ops->write == NULL)
return -EOPNOTSUPP;
if (tty->ops->write == NULL)
return -EOPNOTSUPP;
@@
-234,6
+235,8
@@
ppp_sync_open(struct tty_struct *tty)
ap->chan.ops = &sync_ops;
ap->chan.mtu = PPP_MRU;
ap->chan.hdrlen = 2; /* for A/C bytes */
ap->chan.ops = &sync_ops;
ap->chan.mtu = PPP_MRU;
ap->chan.hdrlen = 2; /* for A/C bytes */
+ speed = tty_get_baud_rate(tty);
+ ap->chan.speed = speed;
err = ppp_register_channel(&ap->chan);
if (err)
goto out_free;
err = ppp_register_channel(&ap->chan);
if (err)
goto out_free;