From: Jens Taprogge Date: Wed, 12 Sep 2012 12:55:31 +0000 (+0200) Subject: Staging: ipack/devices/ipoctal: remove superfluous function. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=699a89f1e291af0d47744200011d5c24d9e462a6;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git Staging: ipack/devices/ipoctal: remove superfluous function. ipoctal_write_tty and ipoctal_write are merged. Signed-off-by: Jens Taprogge Signed-off-by: Samuel Iglesias Gonsalvez Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/ipack/devices/ipoctal.c b/drivers/staging/ipack/devices/ipoctal.c index e0be6604c1ec..4cc91730f34e 100644 --- a/drivers/staging/ipack/devices/ipoctal.c +++ b/drivers/staging/ipack/devices/ipoctal.c @@ -493,9 +493,11 @@ static inline int ipoctal_copy_write_buffer(struct ipoctal_channel *channel, return i; } -static int ipoctal_write(struct ipoctal_channel *channel, - const unsigned char *buf, int count) +static int ipoctal_write_tty(struct tty_struct *tty, + const unsigned char *buf, int count) { + struct ipoctal_channel *channel = tty->driver_data; + channel->nb_bytes = 0; channel->count_wr = 0; @@ -519,14 +521,6 @@ static int ipoctal_write(struct ipoctal_channel *channel, return channel->count_wr; } -static int ipoctal_write_tty(struct tty_struct *tty, - const unsigned char *buf, int count) -{ - struct ipoctal_channel *channel = tty->driver_data; - - return ipoctal_write(channel, buf, count); -} - static int ipoctal_write_room(struct tty_struct *tty) { struct ipoctal_channel *channel = tty->driver_data;