diff options
author | Yousong Zhou <yszhou4tech@gmail.com> | 2014-11-12 16:59:19 +0300 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-12-11 19:58:29 +0300 |
commit | 7f1ce63a84a4c0c3cd1c44ec49a758190e5e1e79 (patch) | |
tree | 6072bebcf71ba27f5d3d99056275c30bbe79e13a /blobmsg.c | |
parent | 8cc3903383d0022701bbdb1ca25799a9a087c265 (diff) |
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 <yszhou4tech@gmail.com>
Diffstat (limited to 'blobmsg.c')
-rw-r--r-- | blobmsg.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -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); |