# Re: \[PATCH 15/68\] TTY: ipwireless, fix tty-\>index handling

- From: Jiri Kosina \<hidden\>
- Date: 2012-03-05 14:03:33 
- List: linux-serial
- Page: https://ratatoskr.run/linux-serial/2012/03/3830743
- Thread: https://ratatoskr.run/linux-serial/2012/03/3830764/t.md

```text
On Mon, 5 Mar 2012, Jiri Slaby wrote:

> * do not test if tty->index is in bounds. It is always.
> * tty->index is not a minor! Fix that.
> 
> >From now on, let's assume that the parameter of the function is tty
> index with base being zero. This makes also the code more readable.
> 
> Factually, there is no real change as tty_driver->minor_start is zero,
> so the tests are equivalent. But it did not make sense. And if this
> had changed eventually, it would have caused troubles.
> 
> Signed-off-by: Jiri Slaby <redacted>
> Cc: Jiri Kosina <redacted>
> Cc: David Sterba <redacted>

Acked-by: Jiri Kosina <redacted>

Thanks Jiri.

-- 
Jiri Kosina
SUSE Labs
```
