From 59719544a3e9e81d55b8411edc52f91376c25bb8 Mon Sep 17 00:00:00 2001 From: bigA2021 Date: Fri, 17 Sep 2021 21:00:34 +0800 Subject: [PATCH] usb 0917 commit Signed-off-by: bigA2021 Change-Id: I39993ec8d0fb8fa3fc31c51df09b0b46a05dae85 --- model/usb/device/f_generic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/model/usb/device/f_generic.c b/model/usb/device/f_generic.c index a4288d3..0ab4eb0 100755 --- a/model/usb/device/f_generic.c +++ b/model/usb/device/f_generic.c @@ -1771,7 +1771,7 @@ static int ffs_epfiles_create(struct ffs_data *ffs) return -EFAULT; } } else { - if (sprintf_s(epfile->name, MAX_NAMELEN, "%s.ep%u", ffs->dev_name, i) < 0 ){ + if (sprintf_s(epfile->name, MAX_NAMELEN, "%s.ep%u", ffs->dev_name, i) < 0) { return -EFAULT; } } @@ -2866,7 +2866,7 @@ static int __ffs_func_bind_do_os_desc(enum ffs_os_desc_type type, ext_prop->data = ext_prop_data; memcpy_s(ext_prop_name, ext_prop->name_len, usb_ext_prop_name_ptr(data), - ext_prop->name_len); + ext_prop->name_len); /* property name reported to the host as "WCHAR"s */ ext_prop->name_len *= 2; ext_prop->name = ext_prop_name;