|
@@ -237,10 +237,8 @@ static int nft_ng_random_map_init(const struct nft_ctx *ctx,
|
|
|
priv->map = nft_set_lookup_global(ctx->net, ctx->table,
|
|
|
tb[NFTA_NG_SET_NAME],
|
|
|
tb[NFTA_NG_SET_ID], genmask);
|
|
|
- if (IS_ERR(priv->map))
|
|
|
- return PTR_ERR(priv->map);
|
|
|
|
|
|
- return 0;
|
|
|
+ return PTR_ERR_OR_ZERO(priv->map);
|
|
|
}
|
|
|
|
|
|
static int nft_ng_random_dump(struct sk_buff *skb, const struct nft_expr *expr)
|