platform/netlink: cleanup unnecessary "goto out" from nla_parse()

This commit is contained in:
Thomas Haller 2019-02-15 11:36:39 +01:00
parent d8727f6aa9
commit 6245569c6d

View file

@ -572,15 +572,13 @@ nla_parse (struct nlattr *tb[], int maxtype, struct nlattr *head, int len,
if (policy) {
nmerr = validate_nla (nla, maxtype, policy);
if (nmerr < 0)
goto errout;
return nmerr;
}
tb[type] = nla;
}
nmerr = 0;
errout:
return nmerr;
return 0;
}
/*****************************************************************************/