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.

Signed-off-by: Sukadev Bhattiprolu <[EMAIL PROTECTED]>
Cc: Cedric Le Goater <[EMAIL PROTECTED]>
Cc: Dave Hansen <[EMAIL PROTECTED]>
Cc: Serge Hallyn <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED]
Cc: Eric W. Biederman <[EMAIL PROTECTED]>
---
 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 [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to