On Mon, 20 Jan 2025 19:14:37 +0800 "WanRenyong" <wa...@yunsilicon.com> wrote:
> +static void > +xsc_cmdq_mbox_free(struct xsc_dev *xdev, struct xsc_cmdq_mbox *mbox) > +{ > + struct xsc_cmdq_mbox *next, *head; > + struct xsc_vfio_priv *priv = (struct xsc_vfio_priv *)xdev->dev_priv; Since dev_priv is void *, the cast here is unnecessary in C