diff options
author | Guy Harris <guy@alum.mit.edu> | 2016-08-17 18:34:33 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2016-08-18 01:35:25 +0000 |
commit | 3ba8a28f50ac695233c711c392aed33d9dd398bf (patch) | |
tree | 011259d52638abfa09ca265810b7ababab401a39 /wiretap/ascend.y | |
parent | f17ba6b21c892d4e74e2f75e766d6daacb8d5d52 (diff) | |
download | wireshark-3ba8a28f50ac695233c711c392aed33d9dd398bf.tar.gz |
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>
Diffstat (limited to 'wiretap/ascend.y')
-rw-r--r-- | wiretap/ascend.y | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/wiretap/ascend.y b/wiretap/ascend.y index cf6eff57fd..fdd6be7c51 100644 --- a/wiretap/ascend.y +++ b/wiretap/ascend.y @@ -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 |