From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754063AbYFWLZ4 (ORCPT ); Mon, 23 Jun 2008 07:25:56 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753578AbYFWLZe (ORCPT ); Mon, 23 Jun 2008 07:25:34 -0400 Received: from earthlight.etchedpixels.co.uk ([81.2.110.250]:33275 "EHLO lxorguk.ukuu.org.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753461AbYFWLZd (ORCPT ); Mon, 23 Jun 2008 07:25:33 -0400 From: Alan Cox Subject: [PATCH 2/2] [PATCH] removed unused var real_tty on n_tty_ioctl() To: torvalds@osdl.org, linux-kernel@vger.kernel.org Date: Mon, 23 Jun 2008 12:07:06 +0100 Message-ID: <20080623110657.24976.86724.stgit@localhost.localdomain> In-Reply-To: <20080623110455.24976.32969.stgit@localhost.localdomain> References: <20080623110455.24976.32969.stgit@localhost.localdomain> User-Agent: StGIT/0.14.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Gustavo Fernando Padovan Hello, I noted that the 'struct tty_struct *real_tty' is not used in this function, so I removed the code about 'real_tty'. This little change is on kernel 2.6.25.4, but aplies on 2.6.24 or greater. Signed-off-by: Gustavo Fernando Padovan Acked-by: Alan Cox --- drivers/char/tty_ioctl.c | 7 ------- 1 files changed, 0 insertions(+), 7 deletions(-) diff --git a/drivers/char/tty_ioctl.c b/drivers/char/tty_ioctl.c index b1a757a..8f81139 100644 --- a/drivers/char/tty_ioctl.c +++ b/drivers/char/tty_ioctl.c @@ -981,16 +981,9 @@ EXPORT_SYMBOL_GPL(tty_perform_flush); int n_tty_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg) { - struct tty_struct *real_tty; unsigned long flags; int retval; - if (tty->driver->type == TTY_DRIVER_TYPE_PTY && - tty->driver->subtype == PTY_TYPE_MASTER) - real_tty = tty->link; - else - real_tty = tty; - switch (cmd) { case TCXONC: retval = tty_check_change(tty);