projects
/
oweals
/
libubox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4b56b0
)
blobmsg: remove unnecessary initialization
author
Felix Fietkau
<nbd@openwrt.org>
Sat, 12 Apr 2014 18:20:36 +0000
(20:20 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Sat, 12 Apr 2014 18:20:36 +0000
(20:20 +0200)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
blobmsg.c
patch
|
blob
|
history
diff --git
a/blobmsg.c
b/blobmsg.c
index 47ee9e7f15433464d8908f3017af03c79c586cdb..b3e485dadb54e9d15fa0dbe8e1b2d96cac5be07e 100644
(file)
--- a/
blobmsg.c
+++ b/
blobmsg.c
@@
-203,7
+203,7
@@
attr_to_offset(struct blob_buf *buf, struct blob_attr *attr)
void *
blobmsg_open_nested(struct blob_buf *buf, const char *name, bool array)
{
- struct blob_attr *head
= buf->head
;
+ struct blob_attr *head;
int type = array ? BLOBMSG_TYPE_ARRAY : BLOBMSG_TYPE_TABLE;
unsigned long offset = attr_to_offset(buf, buf->head);
void *data;