diff options
author | Jiri Slaby (SUSE) <[email protected]> | 2023-11-27 13:37:11 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2023-11-28 19:17:06 +0000 |
commit | ad1885559249fa2530cb0659b758583873dc906f (patch) | |
tree | 294a053d10794ce36c425744ed99d1f461beed08 /scripts/gdb/linux/tasks.py | |
parent | ff4b8c3a8be98fee16a8ab7751a5834088e60b23 (diff) |
tty: srmcons: use 'count' directly in srmcons_do_write()
Similarly to 'buf' in the previous patch, there is no need to have a
separate counter ('remaining') in srmcons_do_write(). 'count' can be
used directly which simplifies the code a bit.
Note that the type of the current count ('c') is changed from 'long' to
'size_t' so that:
1) it is prepared for the upcoming change of 'count's type, and
2) is unsigned.
Signed-off-by: "Jiri Slaby (SUSE)" <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Cc: Ivan Kokshaysky <[email protected]>
Cc: Matt Turner <[email protected]>
Cc: [email protected]
Reviewed-by: Ilpo Järvinen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions