diff options
author | Philip Balister <philip@balister.org> | 2018-11-05 14:10:48 -0500 |
---|---|---|
committer | Philip Balister <philip@balister.org> | 2018-11-05 14:10:48 -0500 |
commit | d7d2b7da6f86f325829fa25fe2f5a246984b29e0 (patch) | |
tree | 38b0b79d3e18ddafd2071736749457f9bca9de02 | |
parent | 1166eec8f22141b1eb23a40e3b221b046883f682 (diff) |
bin_statistics_f_impl.cc: Address Coverity 1375158.
The code tests if an unsigned value is greater than zero. This is always
true. Remove code that has no effect.
Signed-off-by: Philip Balister <philip@balister.org>
-rw-r--r-- | gr-blocks/lib/bin_statistics_f_impl.cc | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/gr-blocks/lib/bin_statistics_f_impl.cc b/gr-blocks/lib/bin_statistics_f_impl.cc index 1f17e85365..f91faea61d 100644 --- a/gr-blocks/lib/bin_statistics_f_impl.cc +++ b/gr-blocks/lib/bin_statistics_f_impl.cc @@ -114,7 +114,6 @@ namespace gr { t = std::min(noutput_items - n, int(d_delay)); n += t; d_delay -= t; - assert(d_delay >= 0); if(d_delay == 0) enter_dwell_delay(); break; @@ -126,7 +125,6 @@ namespace gr { n++; } d_delay -= t; - assert(d_delay >= 0); if(d_delay == 0) { leave_dwell_delay(); enter_tune_delay(); |