]> git.karo-electronics.de Git - karo-tx-linux.git/commit
tty: serial: jsm_tty: fixed redundant variable issue.
authorJakob Østergaard Jensen <jakob.jensen.91@gmail.com>
Sun, 7 Feb 2016 11:36:12 +0000 (12:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 7 Feb 2016 21:36:09 +0000 (13:36 -0800)
commit98cb4ab09e772d791b7150c38574a024b9801b47
treed172de5fed44bdcb3f7f540d596b0922a4bed0be
parente882f7158f102ef148a2d96eb4cb50cc88830c87
tty: serial: jsm_tty: fixed redundant variable issue.

The variable "len" gets assigned once and it's value copied to
"n", which is then used for the rest of the function.

This patch fixes the unnecessary variable reassignment by using "len"
throughout the function instead.

Signed-off-by: Jakob Østergaard Jensen <jakob.jensen.91@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/jsm/jsm_tty.c