# Re: \[PATCH v2 06/28\] net: wan: Add support for QMC HDLC

- From: Andrew Lunn \<andrew@lunn.ch\>
- Date: 2023-08-01 09:34:23 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2023/08/2286912
- Thread: https://ratatoskr.run/netdev/2023/07/2280248/t.md

```text
> +static inline struct qmc_hdlc *netdev_to_qmc_hdlc(struct net_device *netdev)
> +{
> +	return (struct qmc_hdlc *)dev_to_hdlc(netdev)->priv;

priv is a void *, so you don't need the cast.

     Andrew
```
