diff options
author | Joe Perches <joe@perches.com> | 2020-08-25 07:56:16 +0300 |
---|---|---|
committer | Heiko Carstens <hca@linux.ibm.com> | 2021-03-08 12:46:30 +0300 |
commit | db232eb42c21b7bca8e46c7e74676754b8fe06ea (patch) | |
tree | b3d3c06f6a61a066922fbce591b1e4a18fc2f7f7 /drivers/s390 | |
parent | 1c0a9c7997325ef7a8f71fca2e1e6091e757c94b (diff) | |
download | linux-db232eb42c21b7bca8e46c7e74676754b8fe06ea.tar.xz |
s390/tty3270: avoid comma separated statements
Use semicolons and braces.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Link: https://lore.kernel.org/r/9988babd9cca4ac841961d9f0bbf5e49caa87659.1598331149.git.joe@perches.com
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'drivers/s390')
-rw-r--r-- | drivers/s390/char/tty3270.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/s390/char/tty3270.c b/drivers/s390/char/tty3270.c index 15692449a1c3..307a80f85c07 100644 --- a/drivers/s390/char/tty3270.c +++ b/drivers/s390/char/tty3270.c @@ -424,8 +424,10 @@ tty3270_update(struct timer_list *t) * last output position matches the start address * of this line. */ - if (s->string[1] == sba[0] && s->string[2] == sba[1]) - str += 3, len -= 3; + if (s->string[1] == sba[0] && s->string[2] == sba[1]) { + str += 3; + len -= 3; + } if (raw3270_request_add_data(wrq, str, len) != 0) break; list_del_init(&s->update); |