.command = NFT_COMPAT_RULE_APPEND,
};
struct nft_chain *c;
- int ret = 0;
nft_fn = nft_rule_delete;
r = nft_rule_find(h, c, NULL, rulenum);
if (r == NULL) {
errno = ENOENT;
- ret = 1;
- goto error;
+ return 0;
}
if (h->ops->init_cs)
if (!new_rule)
return 1;
- ret = nft_rule_append(h, chain, table, new_rule, r, false);
-
-error:
- return ret;
+ return nft_rule_append(h, chain, table, new_rule, r, false);
}
static void nft_table_print_debug(struct nft_handle *h,