net: Drop unlikely before IS_ERR(_OR_NULL)
IS_ERR(_OR_NULL) already contain an 'unlikely' compiler flag and there is no need to do that again from its callers. Drop it. Acked-by: Neil Horman <nhorman@tuxdriver.com> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:

committed by
Jiri Kosina

parent
18e8e5c7a9
commit
b5ffe63442
@@ -4475,7 +4475,7 @@ static int sctp_getsockopt_peeloff(struct sock *sk, int len, char __user *optval
|
||||
}
|
||||
|
||||
newfile = sock_alloc_file(newsock, 0, NULL);
|
||||
if (unlikely(IS_ERR(newfile))) {
|
||||
if (IS_ERR(newfile)) {
|
||||
put_unused_fd(retval);
|
||||
sock_release(newsock);
|
||||
return PTR_ERR(newfile);
|
||||
|
Reference in New Issue
Block a user