Commit 4546e44c authored by Enrico Weigelt's avatar Enrico Weigelt Committed by David S. Miller

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: default avatarEnrico Weigelt <info@metux.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 856e6d9f
...@@ -435,7 +435,7 @@ static int sock_map_fd(struct socket *sock, int flags) ...@@ -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;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment