mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 03:20:57 +00:00
Avoid cppcheck warnings; removing unused vars and a bit of cleanup.
Patch by: junky Review: https://reviewboard.asterisk.org/r/1743/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@362307 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -72,8 +72,8 @@ static int celt_get_val(const struct ast_format_attr *fattr, int key, void *resu
|
||||
*val = attr->framesize;
|
||||
break;
|
||||
default:
|
||||
return -1;
|
||||
ast_log(LOG_WARNING, "unknown attribute type %d\n", key);
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -104,8 +104,8 @@ static int celt_isset(const struct ast_format_attr *fattr, va_list ap)
|
||||
}
|
||||
break;
|
||||
default:
|
||||
return -1;
|
||||
ast_log(LOG_WARNING, "unknown attribute type %d\n", key);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user