mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-06 06:48:07 +02:00
platform/netlink: cleanup unnecessary "goto out" from nla_parse()
This commit is contained in:
parent
d8727f6aa9
commit
6245569c6d
1 changed files with 2 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue