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
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
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
3 matches
Mail list logo