Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Enrico Weigelt and committed by
David S. Miller
d4e575ba c6b36bdd

+2 -2
+2 -2
net/sctp/socket.c
··· 985 985 return -EINVAL; 986 986 987 987 kaddrs = memdup_user(addrs, addrs_size); 988 - if (unlikely(IS_ERR(kaddrs))) 988 + if (IS_ERR(kaddrs)) 989 989 return PTR_ERR(kaddrs); 990 990 991 991 /* Walk through the addrs buffer and count the number of addresses. */ ··· 1315 1315 return -EINVAL; 1316 1316 1317 1317 kaddrs = memdup_user(addrs, addrs_size); 1318 - if (unlikely(IS_ERR(kaddrs))) 1318 + if (IS_ERR(kaddrs)) 1319 1319 return PTR_ERR(kaddrs); 1320 1320 1321 1321 /* Allow security module to validate connectx addresses. */