From: H Hartley Sweeten Date: Fri, 5 Apr 2013 23:13:23 +0000 (-0700) Subject: staging: comedi: serial2002: remove #if 0'ed out code X-Git-Tag: next-20130422~28^2~213 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=9876d566f2083ddec61331d3988eaec76f5ef8f8;p=karo-tx-linux.git staging: comedi: serial2002: remove #if 0'ed out code This function is not used. Just remove it. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/serial2002.c b/drivers/staging/comedi/drivers/serial2002.c index d6bd88833d37..21e3cf162636 100644 --- a/drivers/staging/comedi/drivers/serial2002.c +++ b/drivers/staging/comedi/drivers/serial2002.c @@ -160,24 +160,6 @@ static void serial2002_tty_read_poll_wait(struct file *f, int timeout) 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) { unsigned char ch;