diff options
author | Tom Tsou <tom.tsou@ettus.com> | 2016-10-04 11:55:02 -0700 |
---|---|---|
committer | Tom Tsou <tom.tsou@ettus.com> | 2016-10-04 11:56:33 -0700 |
commit | bbefe9eaff78284e3f1c8861c4372c36c25f4b34 (patch) | |
tree | a53eb8b46776acffb70e56632f497310f697c656 | |
parent | 5e3e23c337a2d4f0a2032e9af93a1d3bd5d798e6 (diff) |
sigproc: Fix boolean return value check
Fix always-false condition due to integer instead of boolean
return value check.
Fixes: Coverity CID 149345
Signed-off-by: Tom Tsou <tom.tsou@ettus.com>
-rw-r--r-- | Transceiver52M/Resampler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Transceiver52M/Resampler.cpp b/Transceiver52M/Resampler.cpp index 04aa51c..ff265e8 100644 --- a/Transceiver52M/Resampler.cpp +++ b/Transceiver52M/Resampler.cpp @@ -191,7 +191,7 @@ int Resampler::rotate(const float *in, size_t in_len, float *out, size_t out_len bool Resampler::init(float bw) { /* Filterbank filter internals */ - if (initFilters(bw) < 0) + if (!initFilters(bw)) return false; /* Precompute filterbank paths */ |