mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 11:25:35 +00:00
Fix coverity UNUSED_VALUE findings in core support level files
Most of these were just saving returned values without using them and in some cases the variable being saved to could be removed as well. (issue ASTERISK-19672) ........ Merged revisions 368738 from http://svn.asterisk.org/svn/asterisk/branches/1.8 ........ Merged revisions 368739 from http://svn.asterisk.org/svn/asterisk/branches/10 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@368751 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -276,7 +276,6 @@ int ast_speech_change_results_type(struct ast_speech *speech, enum ast_speech_re
|
||||
/*! \brief Register a speech recognition engine */
|
||||
int ast_speech_register(struct ast_speech_engine *engine)
|
||||
{
|
||||
struct ast_speech_engine *existing_engine = NULL;
|
||||
int res = 0;
|
||||
|
||||
/* Confirm the engine meets the minimum API requirements */
|
||||
@@ -286,7 +285,7 @@ int ast_speech_register(struct ast_speech_engine *engine)
|
||||
}
|
||||
|
||||
/* If an engine is already loaded with this name, error out */
|
||||
if ((existing_engine = find_engine(engine->name))) {
|
||||
if (find_engine(engine->name)) {
|
||||
ast_log(LOG_WARNING, "Speech recognition engine '%s' already exists.\n", engine->name);
|
||||
return -1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user