未验证 提交 07c4127d 编写于 作者: Z Zhang 提交者: Gitee

update zh-cn/device-dev/driver/driver-hdf-message-management.md.

Signed-off-by: NZhang <zhangfengxi@huawei.com>
上级 86cd2e3a
...@@ -83,12 +83,12 @@ ...@@ -83,12 +83,12 @@
HDF_LOGE("fail to get service"); HDF_LOGE("fail to get service");
return -1; return -1;
} }
struct HdfSBuf *data = HdfSBufObtainDefaultSize(); struct HdfSBuf *data = HdfSbufObtainDefaultSize();
if (data == NULL) { if (data == NULL) {
HDF_LOGE("fail to obtain sbuf data"); HDF_LOGE("fail to obtain sbuf data");
return -1; return -1;
} }
struct HdfSBuf *reply = HdfSBufObtainDefaultSize(); struct HdfSBuf *reply = HdfSbufObtainDefaultSize();
if (reply == NULL) { if (reply == NULL) {
HDF_LOGE("fail to obtain sbuf reply"); HDF_LOGE("fail to obtain sbuf reply");
ret = HDF_DEV_ERR_NO_MEMORY; ret = HDF_DEV_ERR_NO_MEMORY;
...@@ -105,8 +105,8 @@ ...@@ -105,8 +105,8 @@
goto out; goto out;
} }
out: out:
HdfSBufRecycle(data); HdfSbufRecycle(data);
HdfSBufRecycle(reply); HdfSbbufRecycle(reply);
HdfIoServiceRecycle(serv); HdfIoServiceRecycle(serv);
return ret; return ret;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册