On Fri, 03 Jan 2025 23:04:13 +0800 "WanRenyong" <[email protected]> wrote:
> +static int
> +xsc_vfio_set_mtu(struct xsc_dev *xdev, uint16_t mtu)
> +{
> + struct xsc_cmd_set_mtu_mbox_in in;
> + struct xsc_cmd_set_mtu_mbox_out out;
> + int ret;
> +
> + memset(&in, 0, sizeof(in));
> + memset(&out, 0, sizeof(out));
Optionally, you can initalize on stack variables with:
struct xsc_cmd_set_mtu_mbox_in in = { };
Either way is ok, it is up to you.

