[PATCH v1 03/25] j1939: socket: remove unused label put_dev

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Automotive Discussions]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [CAN Bus]

  Powered by Linux