diff options
author | Cedric Le Goater <clg@fr.ibm.com> | 2007-02-10 04:46:33 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-11 14:18:06 -0500 |
commit | 8cddd7076ab440906dcf2831e37a147484af80fc (patch) | |
tree | 3374508da9d59801761f0d566e4f016dfae1aec7 /drivers/char/mxser.c | |
parent | 87d156bfd50ac6e66db981989948b7311a25b6ae (diff) |
[PATCH] mxser: remove useless fields
the session and pgrp fields in mxser_struct are unused.
Signed-off-by: Cedric Le Goater <clg@fr.ibm.com>
Cc: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char/mxser.c')
-rw-r--r-- | drivers/char/mxser.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/char/mxser.c b/drivers/char/mxser.c index df1e608b7ae6..a61fb6da5d03 100644 --- a/drivers/char/mxser.c +++ b/drivers/char/mxser.c | |||
@@ -321,8 +321,6 @@ struct mxser_struct { | |||
321 | unsigned long event; | 321 | unsigned long event; |
322 | int count; /* # of fd on device */ | 322 | int count; /* # of fd on device */ |
323 | int blocked_open; /* # of blocked opens */ | 323 | int blocked_open; /* # of blocked opens */ |
324 | long session; /* Session of opening process */ | ||
325 | long pgrp; /* pgrp of opening process */ | ||
326 | unsigned char *xmit_buf; | 324 | unsigned char *xmit_buf; |
327 | int xmit_head; | 325 | int xmit_head; |
328 | int xmit_tail; | 326 | int xmit_tail; |
@@ -1001,15 +999,12 @@ static int mxser_open(struct tty_struct *tty, struct file *filp) | |||
1001 | mxser_change_speed(info, NULL); | 999 | mxser_change_speed(info, NULL); |
1002 | } | 1000 | } |
1003 | 1001 | ||
1004 | info->session = process_session(current); | ||
1005 | info->pgrp = process_group(current); | ||
1006 | |||
1007 | /* | 1002 | /* |
1008 | status = mxser_get_msr(info->base, 0, info->port); | 1003 | status = mxser_get_msr(info->base, 0, info->port); |
1009 | mxser_check_modem_status(info, status); | 1004 | mxser_check_modem_status(info, status); |
1010 | */ | 1005 | */ |
1011 | 1006 | ||
1012 | /* unmark here for very high baud rate (ex. 921600 bps) used */ | 1007 | /* unmark here for very high baud rate (ex. 921600 bps) used */ |
1013 | tty->low_latency = 1; | 1008 | tty->low_latency = 1; |
1014 | return 0; | 1009 | return 0; |
1015 | } | 1010 | } |