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>
static struct console *console;
-static unsigned char *tmp_buf;
-
extern struct console *console_drivers; /* from kernel/printk.c */
/*
int c, ret = 0;
unsigned long flags;
- if (!tty || !info->xmit.buf || !tmp_buf) return 0;
+ if (!tty || !info->xmit.buf)
+ return 0;
local_irq_save(flags);
while (1) {
{
struct serial_state *info = rs_table + tty->index;
int retval;
- unsigned long page;
info->tport.count++;
info->tport.tty = tty;
#endif
tty->low_latency = (info->tport.flags & ASYNC_LOW_LATENCY) ? 1 : 0;
- if (!tmp_buf) {
- page = get_zeroed_page(GFP_KERNEL);
- if (!page)
- return -ENOMEM;
- if (tmp_buf)
- free_page(page);
- else
- tmp_buf = (unsigned char *) page;
- }
-
/*
* If the port is the middle of closing, bail out now
*/