Staging: ipack/devices/ipoctal: simplify ipoctal_write_tty()
authorSamuel Iglesias Gonsalvez <siglesias@igalia.com>
Thu, 13 Sep 2012 10:32:23 +0000 (12:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Sep 2012 03:21:38 +0000 (20:21 -0700)
commitd04600679ba08f40f5a3be597f44250b129af552
treedfe338ab641bd013b797509aa9e50eb766078873
parent4514108c5b8088ab4a72ba27eb093882d76619cf
Staging: ipack/devices/ipoctal: simplify ipoctal_write_tty()

Remove count_wr and the assigment of nb_bytes = 0 in that function as is
useless. Now it returns the count of the characters actually sent.

There is other nb_bytes = 0 deleted that has a duplicate a few lines before.

Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ipack/devices/ipoctal.c