Skip to contentSkip to conversation

Kill unused sesssion and group values in rocket driver

PATCH New [email protected] 1 participant 1 message Mar 13, 2007 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Kill unused sesssion and group values in rocket driver

From: Sukadev Bhattiprolu <[email protected]>
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.

Cc Cedric Le Goater <[email protected]>
Cc Dave Hansen <[email protected]>
Cc Serge Hallyn <[email protected]>
Cc Eric W. Biederman <[email protected]>
---
 drivers/char/rocket.c     |    3 ---
 drivers/char/rocket_int.h |    2 --
 2 files changed, 5 deletions(-)
drivers/char/rocket.c +0 -3
Index: lx26-20-mm2c/drivers/char/rocket.c
===================================================================
@@ -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);
drivers/char/rocket_int.h +0 -2
Index: lx26-20-mm2c/drivers/char/rocket_int.h
===================================================================
@@ -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;