aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/transport
diff options
context:
space:
mode:
authorSteven Koo <steven.koo@ni.com>2020-08-04 17:41:06 -0500
committerAaron Rossetto <aaron.rossetto@ni.com>2020-08-12 07:13:04 -0500
commit552b17c0de2645489caf97fc9e1ca491afc9cd46 (patch)
tree54bf327fcd8252a757cef03ca8e6da02760c73f3 /host/lib/transport
parenta518c5c771aa9b2e5a537d44b949b84e2d05fcd3 (diff)
downloaduhd-552b17c0de2645489caf97fc9e1ca491afc9cd46.tar.gz
uhd-552b17c0de2645489caf97fc9e1ca491afc9cd46.tar.bz2
uhd-552b17c0de2645489caf97fc9e1ca491afc9cd46.zip
uhd: Remove assignment to const var for mac build
These values are already correctly set upstream and should not be modified since params is const.
Diffstat (limited to 'host/lib/transport')
-rw-r--r--host/lib/transport/udp_boost_asio_link.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/host/lib/transport/udp_boost_asio_link.cpp b/host/lib/transport/udp_boost_asio_link.cpp
index 2d4a4f640..f91bad09e 100644
--- a/host/lib/transport/udp_boost_asio_link.cpp
+++ b/host/lib/transport/udp_boost_asio_link.cpp
@@ -84,17 +84,6 @@ udp_boost_asio_link::sptr udp_boost_asio_link::make(const std::string& addr,
UHD_ASSERT_THROW(params.recv_buff_size != 0);
UHD_ASSERT_THROW(params.send_buff_size != 0);
-#if defined(UHD_PLATFORM_MACOS) || defined(UHD_PLATFORM_BSD)
- // limit buffer size on macos to avoid the warning issued by
- // resize_buff_helper
- if (params.recv_buff_size > MAX_BUFF_SIZE_ETH_MACOS) {
- params.recv_buff_size = MAX_BUFF_SIZE_ETH_MACOS;
- }
- if (params.send_buff_size > MAX_BUFF_SIZE_ETH_MACOS) {
- params.send_buff_size = MAX_BUFF_SIZE_ETH_MACOS;
- }
-#endif
-
udp_boost_asio_link::sptr link(new udp_boost_asio_link(addr, port, params));
// call the helper to resize send and recv buffers