diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-04-12 22:20:36 +0400 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-04-12 22:20:36 +0400 |
commit | 93a4cb92c18334af6f102eb76a812d8e888510d4 (patch) | |
tree | 841b033092b5b7e73c6de1d9cd19c11517a87022 /blobmsg.c | |
parent | d4b56b09403e6bf802633c447a3877eefb6ff41c (diff) |
blobmsg: remove unnecessary initialization
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'blobmsg.c')
-rw-r--r-- | blobmsg.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |