[PATCH v3] tty: serial: jsm_tty: fixed redundant variable issue.

2016-02-07 Thread Jakob Østergaard Jensen
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 Jense

[PATCH v2] tty: serial: jsm_tty: fixed redundant variable issue.

2016-02-05 Thread Jakob Østergaard Jensen
Fixes unnecessary variable reassignment to a new redundant variable. Signed-off-by: Jakob Østergaard Jensen --- drivers/tty/serial/jsm/jsm_tty.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/tty/serial/jsm/jsm_tty.c b/drivers/tty/serial/jsm/jsm_tty.c

[PATCH] tty: serial: jsm_tty: fixed redundant variable issue.

2016-02-05 Thread Jakob Østergaard Jensen
Fixes unnecessary variable reassignment to a new redundant variable. Signed-off-by: Jakob Østergaard Jensen --- drivers/tty/serial/jsm/jsm_tty.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/tty/serial/jsm/jsm_tty.c b/drivers/tty/serial/jsm/jsm_tty.c index