From f35e98e4d5641d20b3d165cd3ef290e67ce0e1ee Mon Sep 17 00:00:00 2001 From: Georgi Chorbadzhiyski Date: Thu, 8 Sep 2011 23:57:11 +0300 Subject: [PATCH] Remove unused variables. --- dvb/sim.h | 1 - mpeg/psi.h | 2 -- 2 files changed, 3 deletions(-) diff --git a/dvb/sim.h b/dvb/sim.h index d5a083c..4b03d5c 100644 --- a/dvb/sim.h +++ b/dvb/sim.h @@ -211,7 +211,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 f1789b4..3db99ad 100644 --- a/mpeg/psi.h +++ b/mpeg/psi.h @@ -1034,7 +1034,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) @@ -1058,7 +1057,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;