Commit 9876d566 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

staging: comedi: serial2002: remove #if 0'ed out code

This function is not used. Just remove it.
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7e32f5ad
...@@ -160,24 +160,6 @@ static void serial2002_tty_read_poll_wait(struct file *f, int timeout) ...@@ -160,24 +160,6 @@ static void serial2002_tty_read_poll_wait(struct file *f, int timeout)
poll_freewait(&table); poll_freewait(&table);
} }
#if 0
/*
* On 2.6.26.3 this occaisonally gave me page faults, worked around by
* settings.c_cc[VMIN] = 0; settings.c_cc[VTIME] = 0
*/
static int tty_available(struct file *f)
{
long result = 0;
mm_segment_t oldfs;
oldfs = get_fs();
set_fs(KERNEL_DS);
serial2002_tty_ioctl(f, FIONREAD, (unsigned long)&result);
set_fs(oldfs);
return result;
}
#endif
static int serial2002_tty_read(struct file *f, int timeout) static int serial2002_tty_read(struct file *f, int timeout)
{ {
unsigned char ch; unsigned char ch;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment