Skip to contentSkip to conversation

selftests/txtimestamp: Fix an equals vs assign bug

PATCH Applied Dan Carpenter 3 participants 3 messages Jan 9, 2019 – Jan 15, 2019

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 selftests/txtimestamp: Fix an equals vs assign bug

This should be = instead of =.

Fixes b52354aa068e ("selftests: expand txtimestamp with ipv6 dgram + raw and pf_packet")
---
 tools/testing/selftests/networking/timestamping/txtimestamp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/networking/timestamping/txtimestamp.c +1 -1
index 2e563d17cf0c..d1bbafb16f47 100644
@@ -240,7 +240,7 @@ static void __recv_errmsg_cmsg(struct msghdr *msg, int payload_len)
 			    cm->cmsg_type = IP_RECVERR) ||
 			   (cm->cmsg_level = SOL_IPV6 &&
 			    cm->cmsg_type = IPV6_RECVERR) ||
-			   (cm->cmsg_level = SOL_PACKET &&
+			   (cm->cmsg_level = SOL_PACKET &&
 			    cm->cmsg_type = PACKET_TX_TIMESTAMP)) {
 			serr = (void *) CMSG_DATA(cm);
 			if (serr->ee_errno != ENOMSG ||
Signature · 1 line
2.17.1