Just return the value of yyparse() from run_ascend_parser().

That's what we're doing already, but get rid of the variable to which we
assigned the return value.

Change-Id: I55e31664bc26bbfffe4a4ca764c917eefbb9a8f1
Reviewed-on: https://code.wireshark.org/review/17126
Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
Guy Harris 2016-08-17 18:34:33 -07:00
parent f17ba6b21c
commit 3ba8a28f50
1 changed files with 1 additions and 3 deletions

View File

@ -448,7 +448,6 @@ run_ascend_parser(FILE_T fh, struct wtap_pkthdr *phdr, guint8 *pd,
ascend_state_t *parser_state, int *err, gchar **err_info)
{
yyscan_t scanner = NULL;
int retval;
if (ascendlex_init(&scanner) != 0) {
/* errno is set if this fails */
@ -491,8 +490,7 @@ run_ascend_parser(FILE_T fh, struct wtap_pkthdr *phdr, guint8 *pd,
*/
parser_state->pseudo_header->call_num[0] = '\0';
retval = yyparse(scanner, parser_state, fh);
return retval;
return yyparse(scanner, parser_state, fh);
}
void