diff options
author | Gregory CLEMENT <gregory.clement@bootlin.com> | 2020-05-18 11:45:13 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-06-24 18:50:29 +0300 |
commit | 7454c171a88c188583bbfe17db1f9e6e75723b5f (patch) | |
tree | 8d6d1bf2f9880b7944525d1b9e5114b051552011 /drivers/hwmon/ltc4245.c | |
parent | 4f01308480c546853e199bf0da6ed7dffba43f69 (diff) | |
download | linux-7454c171a88c188583bbfe17db1f9e6e75723b5f.tar.xz |
tty: n_gsm: Fix bogus i++ in gsm_data_kick
[ Upstream commit 4dd31f1ffec6c370c3c2e0c605628bf5e16d5c46 ]
When submitting the previous fix "tty: n_gsm: Fix waking up upper tty
layer when room available". It was suggested to switch from a while to
a for loop, but when doing it, there was a remaining bogus i++.
This patch removes this i++ and also reorganizes the code making it more
compact.
Fixes: e1eaea46bb40 ("tty: n_gsm line discipline")
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Link: https://lore.kernel.org/r/20200518084517.2173242-3-gregory.clement@bootlin.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/hwmon/ltc4245.c')
0 files changed, 0 insertions, 0 deletions