From: Sukadev Bhattiprolu The process_session() and process_group() values are not really used by the driver. Signed-off-by: Sukadev Bhattiprolu Cc: Cedric Le Goater Cc: Dave Hansen Cc: Serge Hallyn Cc: Cc: Eric W. Biederman Signed-off-by: Andrew Morton --- drivers/char/rocket.c | 3 --- drivers/char/rocket_int.h | 2 -- 2 files changed, 5 deletions(-) diff -puN drivers/char/rocket.c~kill-unused-sesssion-and-group-values-in-rocket-driver drivers/char/rocket.c --- a/drivers/char/rocket.c~kill-unused-sesssion-and-group-values-in-rocket-driver +++ a/drivers/char/rocket.c @@ -1014,9 +1014,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); diff -puN drivers/char/rocket_int.h~kill-unused-sesssion-and-group-values-in-rocket-driver drivers/char/rocket_int.h --- a/drivers/char/rocket_int.h~kill-unused-sesssion-and-group-values-in-rocket-driver +++ a/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; _