summaryrefslogtreecommitdiff
path: root/apps/plugins/rockboy/loader.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2007-09-09 02:49:24 +0000
committerMichael Sevakis <jethead71@rockbox.org>2007-09-09 02:49:24 +0000
commitb0a1ed1852fb7574cdda515c0e481b760b693b40 (patch)
tree2daee96bf934ea994a1e6aaf6cfa355e0115aed1 /apps/plugins/rockboy/loader.c
parente847054e63b59ece387535f688e35886249fa311 (diff)
downloadrockbox-b0a1ed1852fb7574cdda515c0e481b760b693b40.tar.gz
rockbox-b0a1ed1852fb7574cdda515c0e481b760b693b40.zip
Fix rockbox warnings. sramfile is a static array so will never be NULL.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14648 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/rockboy/loader.c')
-rw-r--r--apps/plugins/rockboy/loader.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/rockboy/loader.c b/apps/plugins/rockboy/loader.c
index 0dbd0b4591..bdccb2e7e1 100644
--- a/apps/plugins/rockboy/loader.c
+++ b/apps/plugins/rockboy/loader.c
@@ -225,7 +225,7 @@ int sram_load(void)
225 int fd; 225 int fd;
226 char meow[500]; 226 char meow[500];
227 227
228 if (!mbc.batt || !sramfile || !*sramfile) return -1; 228 if (!mbc.batt || !*sramfile) return -1;
229 229
230 /* Consider sram loaded at this point, even if file doesn't exist */ 230 /* Consider sram loaded at this point, even if file doesn't exist */
231 ram.loaded = 1; 231 ram.loaded = 1;
@@ -249,7 +249,7 @@ int sram_save(void)
249 char meow[500]; 249 char meow[500];
250 250
251 /* If we crash before we ever loaded sram, DO NOT SAVE! */ 251 /* If we crash before we ever loaded sram, DO NOT SAVE! */
252 if (!mbc.batt || !sramfile || !ram.loaded || !mbc.ramsize) 252 if (!mbc.batt || !ram.loaded || !mbc.ramsize)
253 return -1; 253 return -1;
254 fd = open(sramfile, O_WRONLY|O_CREAT|O_TRUNC); 254 fd = open(sramfile, O_WRONLY|O_CREAT|O_TRUNC);
255 if (fd<0) return -1; 255 if (fd<0) return -1;