Skip to content

Commit

Permalink
blobmsg: remove unneeded assignment in blobmsg_alloc_string_buffer().
Browse files Browse the repository at this point in the history
data_dest should already be assigned by blobmsg_new() if the return
value is not NULL.

Signed-off-by: Yousong Zhou <[email protected]>
  • Loading branch information
yousong authored and Felix Fietkau committed Dec 11, 2014
1 parent 8cc3903 commit 7f1ce63
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion blobmsg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 7f1ce63

Please sign in to comment.