[PATCH] Kill unused sesssion and group values in rocket driver

sukadev at us.ibm.com sukadev at us.ibm.com
Mon Mar 12 21:49:33 PDT 2007


From: Sukadev Bhattiprolu <sukadev at us.ibm.com>
Subject: [PATCH] Kill unused sesssion and group values in rocket driver

The process_session() and process_group() values are not really
used by the driver.

Signed-off-by: Sukadev Bhattiprolu <sukadev at us.ibm.com>
Cc: Cedric Le Goater <clg at fr.ibm.com>
Cc: Dave Hansen <haveblue at us.ibm.com>
Cc: Serge Hallyn <serue at us.ibm.com>
Cc: containers at lists.osdl.org
Cc: Eric W. Biederman <ebiederm at xmission.com>
---
 drivers/char/rocket.c     |    3 ---
 drivers/char/rocket_int.h |    2 --
 2 files changed, 5 deletions(-)

Index: lx26-20-mm2c/drivers/char/rocket.c
===================================================================
--- lx26-20-mm2c.orig/drivers/char/rocket.c	2007-02-28 19:23:00.000000000 -0800
+++ lx26-20-mm2c/drivers/char/rocket.c	2007-02-28 19:24:41.000000000 -0800
@@ -1018,9 +1018,6 @@ static int rp_open(struct tty_struct *tt
 	/*
 	 * Info->count is now 1; so it's safe to sleep now.
 	 */
-	info->session = process_session(current);
-	info->pgrp = process_group(current);
-
 	if ((info->flags & ROCKET_INITIALIZED) == 0) {
 		cp = &info->channel;
 		sSetRxTrigger(cp, TRIG_1);
Index: lx26-20-mm2c/drivers/char/rocket_int.h
===================================================================
--- lx26-20-mm2c.orig/drivers/char/rocket_int.h	2007-02-28 19:23:00.000000000 -0800
+++ lx26-20-mm2c/drivers/char/rocket_int.h	2007-02-28 19:24:41.000000000 -0800
@@ -1156,8 +1156,6 @@ struct r_port {
 	int xmit_head;
 	int xmit_tail;
 	int xmit_cnt;
-	int session;
-	int pgrp;
 	int cd_status;
 	int ignore_status_mask;
 	int read_status_mask;



More information about the Containers mailing list