From 93a4cb92c18334af6f102eb76a812d8e888510d4 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 12 Apr 2014 20:20:36 +0200 Subject: [PATCH] blobmsg: remove unnecessary initialization Signed-off-by: Felix Fietkau --- blobmsg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.25.1