From: Felix Fietkau Date: Sat, 12 Apr 2014 18:20:36 +0000 (+0200) Subject: blobmsg: remove unnecessary initialization X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=93a4cb92c18334af6f102eb76a812d8e888510d4;p=oweals%2Flibubox.git blobmsg: remove unnecessary initialization Signed-off-by: Felix Fietkau --- diff --git a/blobmsg.c b/blobmsg.c index 47ee9e7..b3e485d 100644 --- 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;