Commit f35e98e4 authored by Georgi Chorbadzhiyski's avatar Georgi Chorbadzhiyski

Remove unused variables.

parent a041a344
...@@ -211,7 +211,6 @@ static inline bool tlv_append_data(uint8_t *p_tlv, uint16_t i_type, ...@@ -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) const uint8_t *p_data, uint16_t i_length)
{ {
uint8_t *p_tlv_n = tlv_find_param(p_tlv, TLV_PARAM_EMPTY, 0); 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, if (!tlv_validate_param(p_tlv, p_tlv_n,
i_length + TLV_PARAM_EMPTY_SIZE)) i_length + TLV_PARAM_EMPTY_SIZE))
return false; return false;
......
...@@ -1034,7 +1034,6 @@ static inline bool cat_validate(const uint8_t *p_cat) ...@@ -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 uint16_t i_section_size = psi_get_length(p_cat) + PSI_HEADER_SIZE
- PSI_CRC_SIZE; - PSI_CRC_SIZE;
const uint8_t *p_cat_n;
if (!psi_get_syntax(p_cat) || psi_get_section(p_cat) if (!psi_get_syntax(p_cat) || psi_get_section(p_cat)
|| psi_get_lastsection(p_cat) || psi_get_lastsection(p_cat)
...@@ -1058,7 +1057,6 @@ static inline bool cat_table_validate(uint8_t **pp_sections) ...@@ -1058,7 +1057,6 @@ static inline bool cat_table_validate(uint8_t **pp_sections)
for (i = 0; i <= i_last_section; i++) { for (i = 0; i <= i_last_section; i++) {
uint8_t *p_section = psi_table_get_section(pp_sections, i); uint8_t *p_section = psi_table_get_section(pp_sections, i);
int j = 0;
if (!psi_check_crc(p_section)) if (!psi_check_crc(p_section))
return false; return false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment