Skip to content

Commit 4546e44

Browse files
metuxdavem330
authored andcommitted
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>
1 parent 856e6d9 commit 4546e44

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/socket.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ static int sock_map_fd(struct socket *sock, int flags)
435435
}
436436

437437
newfile = sock_alloc_file(sock, flags, NULL);
438-
if (likely(!IS_ERR(newfile))) {
438+
if (!IS_ERR(newfile)) {
439439
fd_install(fd, newfile);
440440
return fd;
441441
}

0 commit comments

Comments
 (0)