This patch title is too long, no more than 80 chars please, when it
goes over that boundary it becomes a description ;)

More comments below.

On Thu, Jul 21, 2016 at 10:09:19PM +0800, f...@ikuai8.com wrote:
> From: Gao Feng <f...@ikuai8.com>
> 
> Signed-off-by: Gao Feng <f...@ikuai8.com>
> ---
>  v1: Initial Version
> 
>  net/netfilter/ipvs/ip_vs_ctl.c    | 2 +-
>  net/netfilter/nf_conntrack_core.c | 6 ++----
>  2 files changed, 3 insertions(+), 5 deletions(-)
> 
[...]
> diff --git a/net/netfilter/nf_conntrack_core.c 
> b/net/netfilter/nf_conntrack_core.c
> index 153e33f..634d592 100644
> --- a/net/netfilter/nf_conntrack_core.c
> +++ b/net/netfilter/nf_conntrack_core.c
> @@ -1108,10 +1108,8 @@ resolve_normal_ct(struct net *net, struct nf_conn 
> *tmpl,
>       if (!h) {
>               h = init_conntrack(net, tmpl, &tuple, l3proto, l4proto,
>                                  skb, dataoff, hash);
> -             if (!h)
> -                     return NULL;
> -             if (IS_ERR(h))
> -                     return (void *)h;
> +             if (IS_ERR_OR_NULL(h))
> +                     return ERR_CAST(h);

Interesting.

I think we can actually simplify this patch, I'm sending a patch for
this now.

Reply via email to