From db24fc2523da16bd812abb2a35b6320d24083e3f Mon Sep 17 00:00:00 2001 From: Walter Doekes Date: Wed, 8 Feb 2012 20:49:48 +0000 Subject: Avoid cppcheck warnings; removing unused vars and a bit of cleanup. Patch by: Clod Patry Review: https://reviewboard.asterisk.org/r/1651 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@354429 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- formats/format_h263.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'formats') diff --git a/formats/format_h263.c b/formats/format_h263.c index 77c1229c3..b00ae0fb3 100644 --- a/formats/format_h263.c +++ b/formats/format_h263.c @@ -56,9 +56,8 @@ struct h263_desc { static int h263_open(struct ast_filestream *s) { unsigned int ts; - int res; - if ((res = fread(&ts, 1, sizeof(ts), s->f)) < sizeof(ts)) { + if (fread(&ts, 1, sizeof(ts), s->f) < sizeof(ts)) { ast_log(LOG_WARNING, "Empty file!\n"); return -1; } -- cgit v1.2.3