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

Andrew Lunn andrew at lunn.ch
Tue Aug 1 19:31:32 AEST 2023


> +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


More information about the Linuxppc-dev mailing list