usb: gadget: legacy: audio: fix error parameter of sizeof

This patch fixes the issue that a pointer is used as the parameter
of sizeof.

Fixes: 9de5fa6df1 (FROMLIST: usb: gadget: f_uac*: Reduce code duplication)
Signed-off-by: Ren Jianing <jianing.ren@rock-chips.com>
Change-Id: I66bfc58e71c498dd8a82f9b5045f851585e1f441
This commit is contained in:
Ren Jianing
2020-09-25 09:50:11 +08:00
committed by Tao Huang
parent 3c43df1143
commit 83aa893b04

View File

@@ -225,7 +225,7 @@ static int audio_bind(struct usb_composite_dev *cdev)
#endif
#if !defined(CONFIG_GADGET_UAC1) || !defined(CONFIG_GADGET_UAC1_LEGACY)
memset(uac_opts, 0x0, sizeof(uac_opts));
memset(uac_opts, 0x0, sizeof(*uac_opts));
uac_opts->p_chmask = p_chmask;
uac_opts->p_srate[0] = p_srate;
uac_opts->p_srate_active = p_srate;