[PATCH v1 2/4] j1939: socket: j1939_sk_recv_one(): remove comments

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

 



It should be clear from the code what happens here.

Signed-off-by: Oleksij Rempel <o.rempel@xxxxxxxxxxxxxx>
---
 net/can/j1939/socket.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/net/can/j1939/socket.c b/net/can/j1939/socket.c
index 38e2fb47292b..73ac92163373 100644
--- a/net/can/j1939/socket.c
+++ b/net/can/j1939/socket.c
@@ -135,20 +135,12 @@ static void j1939_sk_recv_one(struct j1939_sock *jsk, struct sk_buff *oskb)
 		return;
 	if (!(jsk->state & J1939_SOCK_PROMISC)) {
 		if (jsk->addr.src_name) {
-			/* reject message for other destinations */
 			if (oskcb->addr.dst_name &&
 			    oskcb->addr.dst_name != jsk->addr.src_name)
-				/* the msg is not destined for the name
-				 * that the socket is bound to
-				 */
 				return;
 		} else {
-			/* reject messages for other destination addresses */
 			if (j1939_address_is_unicast(oskcb->addr.da) &&
 			    oskcb->addr.da != jsk->addr.sa)
-				/* the msg is not destined for the name
-				 * that the socket is bound to
-				 */
 				return;
 		}
 	}
-- 
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