diff --git a/modules/congestion_controller/goog_cc/send_side_bandwidth_estimation.cc b/modules/congestion_controller/goog_cc/send_side_bandwidth_estimation.cc index c8509556c6..143e7e4032 100644 --- a/modules/congestion_controller/goog_cc/send_side_bandwidth_estimation.cc +++ b/modules/congestion_controller/goog_cc/send_side_bandwidth_estimation.cc @@ -579,9 +579,7 @@ void SendSideBandwidthEstimation::UpdateMinHistory(Timestamp at_time) { } DataRate SendSideBandwidthEstimation::GetUpperLimit() const { - DataRate upper_limit = delay_based_limit_; - upper_limit = std::min(upper_limit, max_bitrate_configured_); - return upper_limit; + return std::min(delay_based_limit_, max_bitrate_configured_); } void SendSideBandwidthEstimation::MaybeLogLowBitrateWarning(DataRate bitrate,