# Re: \[PATCH 1/2\] can: can327: remove casts from tty-\>disc\_data

- From: Max Staudt \<max@enpas.org\>
- Date: 2023-08-01 14:04:18 
- List: netdev
- Page: https://ratatoskr.run/netdev/2023/08/2287320
- Thread: https://ratatoskr.run/linux-serial/2023/08/2286622/t.md

```text
On 8/1/23 15:22, Jiri Slaby (SUSE) wrote:
> tty->disc_data is 'void *', so there is no need to cast from that.
> Therefore remove the casts and assign the pointer directly.
>
> Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>

Thanks for spotting this!

Reviewed-by: Max Staudt <max@enpas.org>

```
