mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-07 07:08:07 +00:00
net: socket: drop unneeded likely() call around IS_ERR()
IS_ERR() already calls unlikely(), so this extra likely() call around the !IS_ERR() is not needed. Signed-off-by: Enrico Weigelt <info@metux.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
856e6d9f9d
commit
4546e44ca2
1 changed files with 1 additions and 1 deletions
|
@ -435,7 +435,7 @@ static int sock_map_fd(struct socket *sock, int flags)
|
||||||
}
|
}
|
||||||
|
|
||||||
newfile = sock_alloc_file(sock, flags, NULL);
|
newfile = sock_alloc_file(sock, flags, NULL);
|
||||||
if (likely(!IS_ERR(newfile))) {
|
if (!IS_ERR(newfile)) {
|
||||||
fd_install(fd, newfile);
|
fd_install(fd, newfile);
|
||||||
return fd;
|
return fd;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue