summaryrefslogtreecommitdiff
path: root/gr-dtv/lib/dvb/dvb_bbheader_bb_impl.cc
diff options
context:
space:
mode:
authorRon Economos <w6rz@comcast.net>2015-06-01 04:10:09 -0700
committerRon Economos <w6rz@comcast.net>2015-06-01 04:10:09 -0700
commita20b3e9cb0e893aaf2d3fe906b664ec0d8442109 (patch)
tree22e7a900d80788c62c9c3d8092e4ee313c89a59f /gr-dtv/lib/dvb/dvb_bbheader_bb_impl.cc
parent71ab508d5640e098751b4a1ce089d4b4d6885ced (diff)
gr-dtv: Clean up minor Coverity Scan issues.
Diffstat (limited to 'gr-dtv/lib/dvb/dvb_bbheader_bb_impl.cc')
-rw-r--r--gr-dtv/lib/dvb/dvb_bbheader_bb_impl.cc15
1 files changed, 5 insertions, 10 deletions
diff --git a/gr-dtv/lib/dvb/dvb_bbheader_bb_impl.cc b/gr-dtv/lib/dvb/dvb_bbheader_bb_impl.cc
index e0c80ea304..551191c0e5 100644
--- a/gr-dtv/lib/dvb/dvb_bbheader_bb_impl.cc
+++ b/gr-dtv/lib/dvb/dvb_bbheader_bb_impl.cc
@@ -406,29 +406,24 @@ namespace gr {
m_frame[0] = 0;
m_frame[1] = 1;
m_frame_offset_bits = 2;
- temp = 0;
for (int n = 30; n >= 0; n--) {
- m_frame[m_frame_offset_bits++] = temp & (1 << n) ? 1 : 0;
+ m_frame[m_frame_offset_bits++] = 0;
}
- temp = 0;
for (int n = 21; n >= 0; n--) {
- m_frame[m_frame_offset_bits++] = temp & (1 << n) ? 1 : 0;
+ m_frame[m_frame_offset_bits++] = 0;
}
- temp = 0;
for (int n = 1; n >= 0; n--) {
- m_frame[m_frame_offset_bits++] = temp & (1 << n) ? 1 : 0;
+ m_frame[m_frame_offset_bits++] = 0;
}
- temp = 0;
for (int n = 9; n >= 0; n--) {
- m_frame[m_frame_offset_bits++] = temp & (1 << n) ? 1 : 0;
+ m_frame[m_frame_offset_bits++] = 0;
}
temp = ts_rate;
for (int n = 26; n >= 0; n--) {
m_frame[m_frame_offset_bits++] = temp & (1 << n) ? 1 : 0;
}
- temp = 0;
for (int n = 9; n >= 0; n--) {
- m_frame[m_frame_offset_bits++] = temp & (1 << n) ? 1 : 0;
+ m_frame[m_frame_offset_bits++] = 0;
}
}