lkml.org 
[lkml]   [2007]   [Mar]   [13]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
DateMon, 12 Mar 2007 21:49:33 -0700
From sukadev@us ...
Subject[PATCH] Kill unused sesssion and group values in rocket driver
From: Sukadev Bhattiprolu <sukadev@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@us.ibm.com>
Cc: Cedric Le Goater <clg@fr.ibm.com>
Cc: Dave Hansen <haveblue@us.ibm.com>
Cc: Serge Hallyn <serue@us.ibm.com>
Cc: containers@lists.osdl.org
Cc: Eric W. Biederman <ebiederm@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;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2007-03-13 05:53    [from the cache]
©2003-2008