summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/networking
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2019-01-09 11:50:07 +0100
committerDavid S. Miller <davem@davemloft.net>2019-01-15 22:33:44 +0100
commit5be99560c6a0c24b7a0cc3bb4f26051c92cdff2a (patch)
treea12c80bc7e5e12db3a58123fe7aa7dc000475c58 /tools/testing/selftests/networking
parentnet: ipv4: Fix memory leak in network namespace dismantle (diff)
downloadlinux-5be99560c6a0c24b7a0cc3bb4f26051c92cdff2a.tar.xz
linux-5be99560c6a0c24b7a0cc3bb4f26051c92cdff2a.zip
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") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Willem de Bruijn <willemb@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/networking')
-rw-r--r--tools/testing/selftests/networking/timestamping/txtimestamp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/networking/timestamping/txtimestamp.c b/tools/testing/selftests/networking/timestamping/txtimestamp.c
index 2e563d17cf0c..d1bbafb16f47 100644
--- a/tools/testing/selftests/networking/timestamping/txtimestamp.c
+++ b/tools/testing/selftests/networking/timestamping/txtimestamp.c
@@ -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 ||