Skip to content

Commit

Permalink
[PATCH] mxser: remove useless fields
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Cedric Le Goater authored and Linus Torvalds committed Feb 11, 2007
1 parent 87d156b commit 8cddd70
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions drivers/char/mxser.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,6 @@ struct mxser_struct {
unsigned long event;
int count; /* # of fd on device */
int blocked_open; /* # of blocked opens */
long session; /* Session of opening process */
long pgrp; /* pgrp of opening process */
unsigned char *xmit_buf;
int xmit_head;
int xmit_tail;
Expand Down Expand Up @@ -1001,15 +999,12 @@ static int mxser_open(struct tty_struct *tty, struct file *filp)
mxser_change_speed(info, NULL);
}

info->session = process_session(current);
info->pgrp = process_group(current);

/*
status = mxser_get_msr(info->base, 0, info->port);
mxser_check_modem_status(info, status);
*/

/* unmark here for very high baud rate (ex. 921600 bps) used */
/* unmark here for very high baud rate (ex. 921600 bps) used */
tty->low_latency = 1;
return 0;
}
Expand Down

0 comments on commit 8cddd70

Please sign in to comment.