未验证 提交 48de902b 编写于 作者: O openharmony_ci 提交者: Gitee

!117 fix: 内源代码检视问题

Merge pull request !117 from xuxinyu/master
......@@ -1183,7 +1183,7 @@ int generic_create_ep0(struct generic_dev_s *dev)
goto err;
}
ret = strncat_s(dev_name, GENERIC_PATH_LEN, "/ep0", strlen("/ep0"));
if (ret < 0)
if (ret != EOK)
{
usb_err("usb make ep0 file path error! ret = %d, errono = %d\n",
ret, get_errno());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册