projects
/
platform
/
kernel
/
linux-starfive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net/handshake: Remove unneeded check from handshake_dup()
[platform/kernel/linux-starfive.git]
/
net
/
handshake
/
netlink.c
diff --git
a/net/handshake/netlink.c
b/net/handshake/netlink.c
index
35c9c44
..
7ec8a76
100644
(file)
--- a/
net/handshake/netlink.c
+++ b/
net/handshake/netlink.c
@@
-99,9
+99,6
@@
static int handshake_dup(struct socket *sock)
struct file *file;
int newfd;
- if (!sock->file)
- return -EBADF;
-
file = get_file(sock->file);
newfd = get_unused_fd_flags(O_CLOEXEC);
if (newfd < 0) {