# Re: \[PATCH 22/35\] tty: make tty\_operations::write\_room return uint

- From: Laurentiu Tudor \<laurentiu.tudor@nxp.com\>
- Date: 2021-05-10 12:50:12 
- List: linux-serial
- Page: https://ratatoskr.run/linux-serial/2021/05/6363650
- Thread: https://ratatoskr.run/linux-serial/2021/05/6358077/t.md

```text


On 5/5/2021 12:19 PM, Jiri Slaby wrote:
> Line disciplines expect a positive value or zero returned from
> tty->ops->write_room (invoked by tty_write_room). So make this
> assumption explicit by using unsigned int as a return value. Both of
> tty->ops->write_room and tty_write_room.
> 
> Signed-off-by: Jiri Slaby <redacted>

>  drivers/tty/ehv_bytechan.c             | 4 ++--

Acked-by: Laurentiu Tudor <laurentiu.tudor@nxp.com>

---
Best Regards, Laurentiu
```
