mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-24 12:44:11 +08:00
net: sctp: drop unneeded likely() call around IS_ERR()
IS_ERR() already calls unlikely(), so this extra unlikely() call around IS_ERR() is not needed. Signed-off-by: Enrico Weigelt <info@metux.net> Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c6b36bdd04
commit
d4e575ba9f
@ -985,7 +985,7 @@ static int sctp_setsockopt_bindx(struct sock *sk,
|
||||
return -EINVAL;
|
||||
|
||||
kaddrs = memdup_user(addrs, addrs_size);
|
||||
if (unlikely(IS_ERR(kaddrs)))
|
||||
if (IS_ERR(kaddrs))
|
||||
return PTR_ERR(kaddrs);
|
||||
|
||||
/* Walk through the addrs buffer and count the number of addresses. */
|
||||
@ -1315,7 +1315,7 @@ static int __sctp_setsockopt_connectx(struct sock *sk,
|
||||
return -EINVAL;
|
||||
|
||||
kaddrs = memdup_user(addrs, addrs_size);
|
||||
if (unlikely(IS_ERR(kaddrs)))
|
||||
if (IS_ERR(kaddrs))
|
||||
return PTR_ERR(kaddrs);
|
||||
|
||||
/* Allow security module to validate connectx addresses. */
|
||||
|
Loading…
Reference in New Issue
Block a user