Backport r31124 - Remove redundant assigment to "dummy" variable

It was probably in there to silence a gcc warning
about unused variable "dummy".

Detected by cppcheck.

git-svn-id: svn://svn.rockbox.org/rockbox/branches/v3_10@31126 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Jarosch 2011-12-03 17:18:12 +00:00
parent dbcd21f3b5
commit 689285bd8e

View file

@ -382,8 +382,8 @@ static int mem_maxlen;
static int mem_getbyte(int dummy, unsigned char *c) static int mem_getbyte(int dummy, unsigned char *c)
{ {
dummy = dummy; (void)dummy;
*c = mem_buf[mem_pos++]; *c = mem_buf[mem_pos++];
if(mem_pos >= mem_buflen) if(mem_pos >= mem_buflen)
mem_pos = 0; mem_pos = 0;