aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/dgnc/dgnc_tty.h
diff options
context:
space:
mode:
authorSomya Anand <somyaanand214@gmail.com>2014-10-22 17:24:03 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-10-23 08:34:25 +0800
commit36beff6e20740e055c11ec87d9f41ea54a842db5 (patch)
tree1f4adb735f1742dbc51024f250646664fcfb50f7 /drivers/staging/dgnc/dgnc_tty.h
parentstaging: vt6655: wcmd.c: fix print priority warning (diff)
downloadlinux-dev-36beff6e20740e055c11ec87d9f41ea54a842db5.tar.xz
linux-dev-36beff6e20740e055c11ec87d9f41ea54a842db5.zip
Staging: dgnc: Remove unused sniff code
The output written by dgnc_sniff_nowait_nolock() is never used anywhere since commit 35cf90459312f ("staging: dgnc: removes proc code") deleted the code that used to copy it to user space. dgnc_sniff_nowait_nolock() uses 'timeval' to create header timestamps for the data dump. 32-bit systems using 'struct timeval' will break in the year 2038, This patch removes dgnc_sniff_nowait_nolock() and all ch_sniff_* members of struct channel_t defined in "dgnc_driver.h". It also removes their usage from the driver files and hence y2038 issue is also resolved. Signed-off-by: Somya Anand <somyaanand214@gmail.com> Reviewed-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/dgnc/dgnc_tty.h')
-rw-r--r--drivers/staging/dgnc/dgnc_tty.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/dgnc/dgnc_tty.h b/drivers/staging/dgnc/dgnc_tty.h
index 58eef257c2ec..3975f0407143 100644
--- a/drivers/staging/dgnc/dgnc_tty.h
+++ b/drivers/staging/dgnc/dgnc_tty.h
@@ -37,6 +37,4 @@ void dgnc_carrier(struct channel_t *ch);
void dgnc_wakeup_writes(struct channel_t *ch);
void dgnc_check_queue_flow_control(struct channel_t *ch);
-void dgnc_sniff_nowait_nolock(struct channel_t *ch, unsigned char *text, unsigned char *buf, int nbuf);
-
#endif