提交 20d7cafa 编写于 作者: Y yinjiaming

fix: 修复源码检视中的问题

【背景】
3.1 代码检视过程中有一些问题需要修复

【修改方案】
更改了一些拼写错误和非可执行文件的权限

【影响】
对现有的产品编译不会有影响。

re #I4XC8T
Signed-off-by: Nyinjiaming <yinjiaming@huawei.com>
Change-Id: I3566a17a9d23aff0302c4871480974a8f82ac484
上级 fe8da321
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
......@@ -13,9 +13,11 @@
See the License for the specific language governing permissions and
limitations under the License.
This is the configuration file template for OpenHarmony OSS Audit Tool, please copy it to your project root dir and modify it refer to OpenHarmony/tools_oat/README.
-->
<!--This is the configuration file template for OpenHarmony OSS Audit Tool,
please copy it to your project root dir and modify it refer to OpenHarmony/tools_oat/README.
-->
<configuration>
<oatconfig>
......
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
......@@ -162,7 +162,7 @@ uint8_t eth_set_hwaddr(struct netif *usb_netif, uint8_t *addr, uint8_t len)
if (is_multicast_eth_addr(addr))
{
usb_err("config a muticast mac address, please check!\n");
usb_err("config a multicast mac address, please check!\n");
return 1;
}
......
......@@ -964,7 +964,7 @@ void fmass_handle_scsi_data(struct mass_dev_s *fmass)
if (is_data_phase)
{
/* wait for the data tranfer done */
/* wait for the data transfer done */
if (!fmass_wait_intr(fmass, taskstate_unmatch(fmass, FMASS_TASK_REQ_DATA_PHASE), (5*HZ)))
{
......
......@@ -63,7 +63,7 @@ struct uac_dev_s
volatile int connected; /* Connected to USB host ? */
int count;
uint32_t fid; /* Frame Indentifier */
uint32_t fid; /* Frame Identifier */
struct list_head uac_queue;
int uac_queue_len;
......
......@@ -720,7 +720,7 @@ struct uvc_dev_s
int connected; /* Connected to USB host? */
void *uvc_handle; /* UVC transmission handle */
uint32_t fid; /* Frame Indentifier */
uint32_t fid; /* Frame Identifier */
uint64_t last_complete; /* Last Video stream complete tick */
struct uvc_format_info format_info;
......
文件模式从 100755 更改为 100644
......@@ -398,7 +398,7 @@ void generic_dev_closed(struct generic_dev_s *dev)
generic_dev_reset(dev);
}
/* decress the reference value and release the device
/* decrees the reference value and release the device
* if there is no reference.
*/
generic_dev_put(dev);
......@@ -541,7 +541,7 @@ static int usbclass_generic_bind(struct usbdevclass_driver_s *driver,
}
(VOID)LOS_EventInit(&priv->ctrlreq_event);
(VOID)LOS_EventInit(&priv->ep0_event);
/* allocate endpoints and conresponding reqeusts */
/* allocate endpoints and conresponding requests */
priv->speed = USB_SPEED_HIGH;
ret = generic_eps_alloc(priv);
if (ret != 0)
......@@ -874,7 +874,7 @@ static void generic_get_composite_devdesc(struct composite_devdesc_s *dev,
dev->nconfigs = GENERIC_NCONFIGS; /* Number of configurations supported */
dev->configid = GENERIC_CONFIGID; /* The only supported configuration ID */
/* get generic deivce by minor */
/* get generic device by minor */
priv = generic_dev_find_by_minor(minor);
if (priv == NULL)
{
......
......@@ -154,7 +154,7 @@ void *usbm_zalloc(struct usb_obj *obj, size_t size)
data = usbm_malloc(obj, size);
if (data)
{
memset_s(data, size, 0, size);
(void)memset_s(data, size, 0, size);
}
return data;
}
......@@ -189,7 +189,7 @@ char *usbm_strdup(struct usb_obj *obj, const char *s)
buf = usbm_malloc(obj, size);
if (buf)
{
memcpy_s(buf, size, s, size);
(void)memcpy_s(buf, size, s, size);
}
return buf;
}
......
......@@ -809,7 +809,6 @@ static int fconfig_enable_udc(struct fconfig_softc *cdev, void *user_data)
}
gi->udc_name = udc_name;
/* TODO: Enable UDC */
ret = fconfig_composite_initialize(gi, com_s);
if (ret)
{
......
......@@ -371,7 +371,7 @@ static ssize_t generic_epfile_handle_write(struct usb_handle *handle, void *buff
uint32_t list_flags;
if (epfile == NULL)
{
usb_err("%s: Invalide parameter!\n", __FUNCTION__);
usb_err("%s: Invalid parameter!\n", __FUNCTION__);
return -1;
}
......
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册