ubusd: remove a faulty and redundant check
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
This commit is contained in:
parent
f09d18878b
commit
152dd96f63
1 changed files with 0 additions and 3 deletions
|
@ -297,9 +297,6 @@ ubusd_acl_file_add(struct ubusd_acl_file *file)
|
||||||
else
|
else
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!tb[ACL_ACCESS] && !tb[ACL_PUBLISH] && !tb[ACL_INHERIT])
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (tb[ACL_ACCESS])
|
if (tb[ACL_ACCESS])
|
||||||
blobmsg_for_each_attr(cur, tb[ACL_ACCESS], rem)
|
blobmsg_for_each_attr(cur, tb[ACL_ACCESS], rem)
|
||||||
ubusd_acl_add_access(file, cur);
|
ubusd_acl_add_access(file, cur);
|
||||||
|
|
Loading…
Reference in a new issue