[OpenWrt-Devel] [PATCH v2 06/10] blobmsg: remove unneeded assignment in blobmsg_alloc_string_buffer().
Yousong Zhou
yszhou4tech at gmail.com
Wed Nov 12 08:59:19 EST 2014
data_dest should already be assigned by blobmsg_new() if the return
value is not NULL.
Signed-off-by: Yousong Zhou <yszhou4tech at gmail.com>
---
blobmsg.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/blobmsg.c b/blobmsg.c
index 9fe96e4..80b984a 100644
--- a/blobmsg.c
+++ b/blobmsg.c
@@ -262,7 +262,6 @@ blobmsg_alloc_string_buffer(struct blob_buf *buf, const char *name, unsigned int
if (!attr)
return NULL;
- data_dest = blobmsg_data(attr);
blob_set_raw_len(buf->head, blob_pad_len(buf->head) - blob_pad_len(attr));
blob_set_raw_len(attr, blob_raw_len(attr) - maxlen);
--
1.7.10.4
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list