From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263288AbUJ2Acn (ORCPT ); Thu, 28 Oct 2004 20:32:43 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263277AbUJ2AbM (ORCPT ); Thu, 28 Oct 2004 20:31:12 -0400 Received: from mailout.stusta.mhn.de ([141.84.69.5]:64262 "HELO mailout.stusta.mhn.de") by vger.kernel.org with SMTP id S263279AbUJ2A2T (ORCPT ); Thu, 28 Oct 2004 20:28:19 -0400 Date: Fri, 29 Oct 2004 02:27:44 +0200 From: Adrian Bunk To: linux-kernel@vger.kernel.org Subject: [2.6 patch] serial_core.c: remove an unused function Message-ID: <20041029002744.GB29142@stusta.de> References: <20041028232220.GI3207@stusta.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041028232220.GI3207@stusta.de> User-Agent: Mutt/1.5.6+20040907i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org [ this time without the problems due to a digital signature... ] The patch below removes an unused function from drivers/serial/serial_core.c diffstat output: drivers/serial/serial_core.c | 40 ----------------------------------- 1 files changed, 40 deletions(-) Signed-off-by: Adrian Bunk --- linux-2.6.10-rc1-mm1-full/drivers/serial/serial_core.c.old 2004-10-28 23:28:48.000000000 +0200 +++ linux-2.6.10-rc1-mm1-full/drivers/serial/serial_core.c 2004-10-28 23:28:58.000000000 +0200 @@ -444,46 +444,6 @@ } static inline int -__uart_user_write(struct uart_port *port, struct circ_buf *circ, - const unsigned char __user *buf, int count) -{ - unsigned long flags; - int c, ret = 0; - - if (down_interruptible(&port->info->tmpbuf_sem)) - return -EINTR; - - while (1) { - int c1; - c = CIRC_SPACE_TO_END(circ->head, circ->tail, UART_XMIT_SIZE); - if (count < c) - c = count; - if (c <= 0) - break; - - c -= copy_from_user(port->info->tmpbuf, buf, c); - if (!c) { - if (!ret) - ret = -EFAULT; - break; - } - spin_lock_irqsave(&port->lock, flags); - c1 = CIRC_SPACE_TO_END(circ->head, circ->tail, UART_XMIT_SIZE); - if (c1 < c) - c = c1; - memcpy(circ->buf + circ->head, port->info->tmpbuf, c); - circ->head = (circ->head + c) & (UART_XMIT_SIZE - 1); - spin_unlock_irqrestore(&port->lock, flags); - buf += c; - count -= c; - ret += c; - } - up(&port->info->tmpbuf_sem); - - return ret; -} - -static inline int __uart_kern_write(struct uart_port *port, struct circ_buf *circ, const unsigned char *buf, int count) {