Signed-off-by: Oleksij Rempel <o.rempel@xxxxxxxxxxxxxx> --- net/can/j1939/socket.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/net/can/j1939/socket.c b/net/can/j1939/socket.c index 683ceb84e80a..c637fad6c805 100644 --- a/net/can/j1939/socket.c +++ b/net/can/j1939/socket.c @@ -329,12 +329,6 @@ static int j1939_sk_connect(struct socket *sock, struct sockaddr *uaddr, goto out_release_sock; } - /* A re-connect() is not supported */ - if (jsk->state & J1939_SOCK_CONNECTED) { - ret = -EBUSY; - goto out_release_sock; - } - jsk->addr.dst_name = addr->can_addr.j1939.name; jsk->addr.da = addr->can_addr.j1939.addr; -- 2.20.1