mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-01 10:33:27 +00:00
ipv4: Use IS_ERR_OR_NULL().
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
8fbcec241d
commit
50c3a487d5
3 changed files with 3 additions and 3 deletions
|
@ -1333,7 +1333,7 @@ static struct sk_buff *inet_gso_segment(struct sk_buff *skb,
|
|||
segs = ops->callbacks.gso_segment(skb, features);
|
||||
rcu_read_unlock();
|
||||
|
||||
if (!segs || IS_ERR(segs))
|
||||
if (IS_ERR_OR_NULL(segs))
|
||||
goto out;
|
||||
|
||||
skb = segs;
|
||||
|
|
|
@ -3243,7 +3243,7 @@ __tcp_alloc_md5sig_pool(struct sock *sk)
|
|||
struct crypto_hash *hash;
|
||||
|
||||
hash = crypto_alloc_hash("md5", 0, CRYPTO_ALG_ASYNC);
|
||||
if (!hash || IS_ERR(hash))
|
||||
if (IS_ERR_OR_NULL(hash))
|
||||
goto out_free;
|
||||
|
||||
per_cpu_ptr(pool, cpu)->md5_desc.tfm = hash;
|
||||
|
|
|
@ -971,7 +971,7 @@ back_from_confirm:
|
|||
sizeof(struct udphdr), &ipc, &rt,
|
||||
msg->msg_flags);
|
||||
err = PTR_ERR(skb);
|
||||
if (skb && !IS_ERR(skb))
|
||||
if (!IS_ERR_OR_NULL(skb))
|
||||
err = udp_send_skb(skb, fl4);
|
||||
goto out;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue