[dvblast-devel] [PATCH 03/17] Remove unused variables.
Georgi Chorbadzhiyski
gf at unixsol.org
Fri Sep 9 23:28:25 CEST 2011
---
dvb/sim.h | 1 -
mpeg/psi.h | 2 --
2 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/dvb/sim.h b/dvb/sim.h
index f5235a2..e13e627 100644
--- a/dvb/sim.h
+++ b/dvb/sim.h
@@ -198,7 +198,6 @@ static inline bool tlv_append_data(uint8_t *p_tlv, uint16_t i_type,
const uint8_t *p_data, uint16_t i_length)
{
uint8_t *p_tlv_n = tlv_find_param(p_tlv, TLV_PARAM_EMPTY, 0);
- int i;
if (!tlv_validate_param(p_tlv, p_tlv_n,
i_length + TLV_PARAM_EMPTY_SIZE))
return false;
diff --git a/mpeg/psi.h b/mpeg/psi.h
index 2b55f75..4e18a2c 100644
--- a/mpeg/psi.h
+++ b/mpeg/psi.h
@@ -1015,7 +1015,6 @@ static inline bool cat_validate(const uint8_t *p_cat)
{
uint16_t i_section_size = psi_get_length(p_cat) + PSI_HEADER_SIZE
- PSI_CRC_SIZE;
- const uint8_t *p_cat_n;
if (!psi_get_syntax(p_cat) || psi_get_section(p_cat)
|| psi_get_lastsection(p_cat)
@@ -1039,7 +1038,6 @@ static inline bool cat_table_validate(uint8_t **pp_sections)
for (i = 0; i <= i_last_section; i++) {
uint8_t *p_section = psi_table_get_section(pp_sections, i);
- int j = 0;
if (!psi_check_crc(p_section))
return false;
--
1.7.5.1
More information about the dvblast-devel
mailing list