All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mxser: remove useless fields
@ 2007-01-23 18:32 Cedric Le Goater
  0 siblings, 0 replies; only message in thread
From: Cedric Le Goater @ 2007-01-23 18:32 UTC (permalink / raw)
  To: Linux Kernel Mailing List; +Cc: Jiri Slaby, Alan Cox

the session and pgrp fields in mxser_struct are unused.

Signed-off-by: Cedric Le Goater <clg@fr.ibm.com>

---
 drivers/char/mxser.c |    7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

Index: 2.6.20-rc4-mm1/drivers/char/mxser.c
===================================================================
--- 2.6.20-rc4-mm1.orig/drivers/char/mxser.c
+++ 2.6.20-rc4-mm1/drivers/char/mxser.c
@@ -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;
@@ -1001,15 +999,12 @@ static int mxser_open(struct tty_struct 
 		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;
 }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-01-23 18:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-23 18:32 [PATCH] mxser: remove useless fields Cedric Le Goater

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.