From: Yousong Zhou Date: Wed, 12 Nov 2014 13:59:19 +0000 (+0800) Subject: blobmsg: remove unneeded assignment in blobmsg_alloc_string_buffer(). X-Git-Url: http://git.openwrt.org/?p=project%2Flibubox.git;a=commitdiff_plain;h=7f1ce63a84a4c0c3cd1c44ec49a758190e5e1e79 blobmsg: remove unneeded assignment in blobmsg_alloc_string_buffer(). data_dest should already be assigned by blobmsg_new() if the return value is not NULL. Signed-off-by: Yousong Zhou --- 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);