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>
This commit is contained in:
parent
8cc3903383
commit
7f1ce63a84
1 changed files with 0 additions and 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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue