[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 02/04: fec: removed logic that will never h
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 02/04: fec: removed logic that will never hit. |
Date: |
Fri, 25 Sep 2015 15:38:52 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
trondeau pushed a commit to branch master
in repository gnuradio.
commit 82dfb5b80f541c799e3ce810105bfb989bd5fca6
Author: Tom Rondeau <address@hidden>
Date: Fri Sep 25 11:02:18 2015 -0400
fec: removed logic that will never hit.
We prevent packets larger than the MTU now, so no need to adjust the
buffer size.
---
gr-fec/lib/async_decoder_impl.cc | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/gr-fec/lib/async_decoder_impl.cc b/gr-fec/lib/async_decoder_impl.cc
index ed709e8..33aaacb 100644
--- a/gr-fec/lib/async_decoder_impl.cc
+++ b/gr-fec/lib/async_decoder_impl.cc
@@ -148,14 +148,6 @@ namespace gr {
volk_32f_s32f_multiply_32f(d_tmp_f32, f32in, 48.0f, nbits_in);
}
else {
-
- // grow d_tmp_f32 if needed
- if(nbits_in > d_max_bits_in){
- d_max_bits_in = nbits_in;
- volk_free(d_tmp_f32);
- d_tmp_f32 = (float*)volk_malloc(d_max_bits_in*sizeof(float),
- volk_get_alignment());
- }
memcpy(d_tmp_f32, f32in, nbits_in*sizeof(float));
}
@@ -172,7 +164,7 @@ namespace gr {
d_decoder->generic_work((void*)d_tmp_u8, (void*)u8out);
}
else {
- for(size_t i=0; i<nblocks; i++){
+ for(size_t i = 0; i < nblocks; i++){
d_decoder->generic_work((void*)&d_tmp_f32[i*d_decoder->get_input_size()],
(void*)&u8out[i*d_decoder->get_output_size()]);
}