blobmsg: remove unnecessary initialization

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
This commit is contained in:
Felix Fietkau 2014-04-12 20:20:36 +02:00
parent d4b56b0940
commit 93a4cb92c1

View file

@ -203,7 +203,7 @@ attr_to_offset(struct blob_buf *buf, struct blob_attr *attr)
void * void *
blobmsg_open_nested(struct blob_buf *buf, const char *name, bool array) 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; int type = array ? BLOBMSG_TYPE_ARRAY : BLOBMSG_TYPE_TABLE;
unsigned long offset = attr_to_offset(buf, buf->head); unsigned long offset = attr_to_offset(buf, buf->head);
void *data; void *data;