summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Jarosch <tomj@simonv.com>2014-12-22 22:33:28 +0100
committerThomas Jarosch <tomj@simonv.com>2014-12-22 22:33:28 +0100
commitb681e932a9da797249ddc0e4ccab7ed7cf50fd41 (patch)
tree28efe79bf053f84f2a60830de170c8de486cf7cf
parent71c0516d520ba0d05b496fb18659c0e7292d4abb (diff)
downloadrockbox-b681e932a9da797249ddc0e4ccab7ed7cf50fd41.tar.gz
rockbox-b681e932a9da797249ddc0e4ccab7ed7cf50fd41.zip
mikmod plugin: Remove bogus doubled return statement
Stick to the safer version of those two. Tested mikmod still works with some nice Necros .s3m files. Change-Id: I6774cdf3345a4c89b2f9cf3bb8d832963ca30c38
-rw-r--r--apps/plugins/mikmod/mmio.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/apps/plugins/mikmod/mmio.c b/apps/plugins/mikmod/mmio.c
index 40f38d997d..0ffecffd2f 100644
--- a/apps/plugins/mikmod/mmio.c
+++ b/apps/plugins/mikmod/mmio.c
@@ -138,7 +138,6 @@ static int _mm_FileReader_Eof(MREADER* reader)
138 //return feof(((MFILEREADER*)reader)->file); 138 //return feof(((MFILEREADER*)reader)->file);
139 int size = filesize(((MFILEREADER*)reader)->file); 139 int size = filesize(((MFILEREADER*)reader)->file);
140 int offset = lseek(((MFILEREADER*)reader)->file, 0, SEEK_CUR); 140 int offset = lseek(((MFILEREADER*)reader)->file, 0, SEEK_CUR);
141 return offset < 0;
142 return (size <= 0 || offset < 0 || offset >= size) ? 1 : 0; 141 return (size <= 0 || offset < 0 || offset >= size) ? 1 : 0;
143} 142}
144 143