Reported-by: Coverity (1395199) Unused value
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
struct lttng_elf *elf = NULL;
char *stap_note_section_data = NULL;
char *curr_note_section_begin, *curr_data_ptr, *curr_probe, *curr_provider;
struct lttng_elf *elf = NULL;
char *stap_note_section_data = NULL;
char *curr_note_section_begin, *curr_data_ptr, *curr_probe, *curr_provider;
- char *next_note_ptr, *curr_desc_beg;
uint32_t name_size, desc_size, note_type;
uint64_t curr_probe_location, curr_probe_offset, curr_semaphore_location;
uint64_t *probe_locs = NULL, *new_probe_locs = NULL;
uint32_t name_size, desc_size, note_type;
uint64_t curr_probe_location, curr_probe_offset, curr_semaphore_location;
uint64_t *probe_locs = NULL, *new_probe_locs = NULL;
curr_data_ptr += name_size;
curr_data_ptr += name_size;
- /* Get description field. */
- curr_desc_beg = curr_data_ptr;
-
/* Get probe location. */
curr_probe_location = *(uint64_t *) curr_data_ptr;
curr_data_ptr += sizeof(uint64_t);
/* Get probe location. */
curr_probe_location = *(uint64_t *) curr_data_ptr;
curr_data_ptr += sizeof(uint64_t);
/* Get probe name. */
curr_probe = curr_data_ptr;
/* Get probe name. */
curr_probe = curr_data_ptr;
- curr_data_ptr += strlen(curr_probe) + 1;
-
- curr_data_ptr = curr_desc_beg + desc_size;
/* Check if the provider and probe name match */
if (strcmp(provider_name, curr_provider) == 0 &&
/* Check if the provider and probe name match */
if (strcmp(provider_name, curr_provider) == 0 &&