Signed-off-by: Oleksij Rempel <o.rempel@xxxxxxxxxxxxxx> --- net/can/j1939/socket.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/net/can/j1939/socket.c b/net/can/j1939/socket.c index 2f4a29530526..b44f21dee3fb 100644 --- a/net/can/j1939/socket.c +++ b/net/can/j1939/socket.c @@ -766,10 +766,6 @@ static int j1939_sk_sendmsg(struct socket *sock, struct msghdr *msg, dev_put(ndev); return (ret < 0) ? ret : size; - - put_dev: - dev_put(ndev); - return ret; } void j1939_sk_netdev_event(struct net_device *ndev, int error_code) -- 2.20.1