aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ia64
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2012-03-05 08:52:29 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-03-08 15:48:26 -0500
commitd88405d44fd30fcbe77a9db540afd8823b30afdc (patch)
tree1d9f23f4eb39d397e1aa247058cfb82c47a2ab8a /arch/ia64
parentfd2d7a6e60068779bc72029f867b51d3dc2fe0cc (diff)
TTY: simserial, remove tmp_buf
It is totally unused. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Cc: Tony Luck <tony.luck@intel.com> Cc: Fenghua Yu <fenghua.yu@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/ia64')
-rw-r--r--arch/ia64/hp/sim/simserial.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/arch/ia64/hp/sim/simserial.c b/arch/ia64/hp/sim/simserial.c
index 64ab004b4763..45df0f427864 100644
--- a/arch/ia64/hp/sim/simserial.c
+++ b/arch/ia64/hp/sim/simserial.c
@@ -55,8 +55,6 @@ struct tty_driver *hp_simserial_driver;
55 55
56static struct console *console; 56static struct console *console;
57 57
58static unsigned char *tmp_buf;
59
60extern struct console *console_drivers; /* from kernel/printk.c */ 58extern struct console *console_drivers; /* from kernel/printk.c */
61 59
62/* 60/*
@@ -237,7 +235,8 @@ static int rs_write(struct tty_struct * tty,
237 int c, ret = 0; 235 int c, ret = 0;
238 unsigned long flags; 236 unsigned long flags;
239 237
240 if (!tty || !info->xmit.buf || !tmp_buf) return 0; 238 if (!tty || !info->xmit.buf)
239 return 0;
241 240
242 local_irq_save(flags); 241 local_irq_save(flags);
243 while (1) { 242 while (1) {
@@ -618,7 +617,6 @@ static int rs_open(struct tty_struct *tty, struct file * filp)
618{ 617{
619 struct serial_state *info = rs_table + tty->index; 618 struct serial_state *info = rs_table + tty->index;
620 int retval; 619 int retval;
621 unsigned long page;
622 620
623 info->tport.count++; 621 info->tport.count++;
624 info->tport.tty = tty; 622 info->tport.tty = tty;
@@ -630,16 +628,6 @@ static int rs_open(struct tty_struct *tty, struct file * filp)
630#endif 628#endif
631 tty->low_latency = (info->tport.flags & ASYNC_LOW_LATENCY) ? 1 : 0; 629 tty->low_latency = (info->tport.flags & ASYNC_LOW_LATENCY) ? 1 : 0;
632 630
633 if (!tmp_buf) {
634 page = get_zeroed_page(GFP_KERNEL);
635 if (!page)
636 return -ENOMEM;
637 if (tmp_buf)
638 free_page(page);
639 else
640 tmp_buf = (unsigned char *) page;
641 }
642
643 /* 631 /*
644 * If the port is the middle of closing, bail out now 632 * If the port is the middle of closing, bail out now
645 */ 633 */