Commit 0083040
tty: n_tty: move newline handling to a separate function
Currently, n_tty handles the newline in a label in
n_tty_receive_char_canon(). That is invoked from two more places. Split
this code to a separate function and avoid the label in this case.
This makes the code flow more understandable.
Signed-off-by: "Jiri Slaby (SUSE)" <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20230827074147.2287-9-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 102dc8a commit 0083040
1 file changed
Lines changed: 19 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1262 | 1262 | | |
1263 | 1263 | | |
1264 | 1264 | | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
1265 | 1276 | | |
1266 | 1277 | | |
1267 | 1278 | | |
| |||
1308 | 1319 | | |
1309 | 1320 | | |
1310 | 1321 | | |
1311 | | - | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
1312 | 1325 | | |
1313 | 1326 | | |
1314 | 1327 | | |
1315 | 1328 | | |
1316 | | - | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
1317 | 1332 | | |
1318 | 1333 | | |
1319 | 1334 | | |
| |||
1335 | 1350 | | |
1336 | 1351 | | |
1337 | 1352 | | |
1338 | | - | |
1339 | | - | |
1340 | | - | |
1341 | | - | |
1342 | | - | |
1343 | | - | |
| 1353 | + | |
| 1354 | + | |
1344 | 1355 | | |
1345 | 1356 | | |
1346 | 1357 | | |
| |||
0 commit comments