From f8674930891b5d8d8c62246a8d22f096f4b02632 Mon Sep 17 00:00:00 2001 From: Sven Schnelle Date: Sun, 4 Dec 2022 20:55:27 +0100 Subject: [PATCH] s390/con3270: fix multiple assignments in one line fix the following and similar checkpatch warnings: CHECK: multiple assignments should be avoided + tp->cx = tp->saved_cx = 0; Signed-off-by: Sven Schnelle Acked-by: Heiko Carstens Signed-off-by: Heiko Carstens --- drivers/s390/char/con3270.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/drivers/s390/char/con3270.c b/drivers/s390/char/con3270.c index f21103a..9a48514 100644 --- a/drivers/s390/char/con3270.c +++ b/drivers/s390/char/con3270.c @@ -1579,8 +1579,10 @@ static void tty3270_escape_sequence(struct tty3270 *tp, char ch) tp->attributes = tp->saved_attributes; break; case 'c': /* Reset terminal. */ - tp->cx = tp->saved_cx = 0; - tp->cy = tp->saved_cy = 0; + tp->cx = 0; + tp->cy = 0; + tp->saved_cx = 0; + tp->saved_cy = 0; tty3270_reset_attributes(&tp->attributes); tty3270_reset_attributes(&tp->saved_attributes); tty3270_erase_display(tp, 2); @@ -1740,7 +1742,8 @@ static void tty3270_do_write(struct tty3270 *tp, struct tty_struct *tty, break; case 0x0c: /* '\f' -- Form Feed */ tty3270_erase_display(tp, 2); - tp->cx = tp->cy = 0; + tp->cx = 0; + tp->cy = 0; break; case 0x0d: /* '\r' -- Carriage Return */ tp->cx = 0; @@ -1883,8 +1886,10 @@ static void tty3270_hangup(struct tty_struct *tty) if (!tp) return; spin_lock_irq(&tp->view.lock); - tp->cx = tp->saved_cx = 0; - tp->cy = tp->saved_cy = 0; + tp->cx = 0; + tp->cy = 0; + tp->saved_cx = 0; + tp->saved_cy = 0; tty3270_reset_attributes(&tp->attributes); tty3270_reset_attributes(&tp->saved_attributes); tty3270_blank_screen(tp); -- 2.7.4