diff --git a/src/fw-update/fw-update-device.cpp b/src/fw-update/fw-update-device.cpp index 20054b524f..75141fa3c8 100644 --- a/src/fw-update/fw-update-device.cpp +++ b/src/fw-update/fw-update-device.cpp @@ -141,7 +141,7 @@ namespace librealsense float update_device::compute_progress(float progress, float start, float end, float threshold) const { - if (threshold < 1.f && threshold > -1.f) + if (threshold < 1.f) throw std::invalid_argument("Avoid division by zero"); return start + (ceil(progress * threshold) / threshold) * (end - start) / 100.f; }