blobmsg: remove unnecessary initialization
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
This commit is contained in:
parent
d4b56b0940
commit
93a4cb92c1
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue