diff options
author | Enrico Weigelt <info@metux.net> | 2019-06-05 23:58:50 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-06 02:57:23 +0300 |
commit | 4546e44ca2ec6fa3ca971ab6de3ef382f17ed544 (patch) | |
tree | e05f60c382b45461a0a8a89ae38a727974dc6ca1 /net | |
parent | 856e6d9f9dd223dea978f1300f7c26903b9f9f6d (diff) | |
download | linux-4546e44ca2ec6fa3ca971ab6de3ef382f17ed544.tar.xz |
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>
Diffstat (limited to 'net')
-rw-r--r-- | net/socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/socket.c b/net/socket.c index 72372dc5dd70..0aa5a06f3698 100644 --- a/net/socket.c +++ b/net/socket.c @@ -435,7 +435,7 @@ static int sock_map_fd(struct socket *sock, int flags) } newfile = sock_alloc_file(sock, flags, NULL); - if (likely(!IS_ERR(newfile))) { + if (!IS_ERR(newfile)) { fd_install(fd, newfile); return fd; } |