aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/rfnoc/chdr_packet_writer.cpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2021-01-08 12:26:09 +0100
committerAaron Rossetto <aaron.rossetto@ni.com>2021-03-11 09:33:57 -0600
commit328572908b6ce8777a780e9fa8106954f749a3a5 (patch)
treebdf26f65aedbdd25c86d1bf6d3cfc65dfb5bea52 /host/lib/rfnoc/chdr_packet_writer.cpp
parent2000bbf17e166e89a32f819d0a31c940e1303d1f (diff)
downloaduhd-328572908b6ce8777a780e9fa8106954f749a3a5.tar.gz
uhd-328572908b6ce8777a780e9fa8106954f749a3a5.tar.bz2
uhd-328572908b6ce8777a780e9fa8106954f749a3a5.zip
lib: Remove move-on-return for chdr_packet_writer
This is a pessimizing move, and clang warns about it.
Diffstat (limited to 'host/lib/rfnoc/chdr_packet_writer.cpp')
-rw-r--r--host/lib/rfnoc/chdr_packet_writer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/rfnoc/chdr_packet_writer.cpp b/host/lib/rfnoc/chdr_packet_writer.cpp
index 95bf5c5d2..830b66a8d 100644
--- a/host/lib/rfnoc/chdr_packet_writer.cpp
+++ b/host/lib/rfnoc/chdr_packet_writer.cpp
@@ -66,7 +66,7 @@ public:
chdr_header get_chdr_header() const override
{
assert(_pkt_buff);
- return std::move(chdr_header(u64_to_host(_pkt_buff[0])));
+ return chdr_header(u64_to_host(_pkt_buff[0]));
}
boost::optional<uint64_t> get_timestamp() const override