Skip to content

Commit

Permalink
Removed rwo return warnings, was to triggerhappy on release
Browse files Browse the repository at this point in the history
  • Loading branch information
pellepl committed Mar 25, 2015
1 parent 617a1e6 commit 5f57130
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/spiffs_hydrogen.c
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,11 @@ s32_t SPIFFS_fflush(spiffs *fs, spiffs_file fh) {
}

void SPIFFS_close(spiffs *fs, spiffs_file fh) {
SPIFFS_API_CHECK_CFG(fs);
if (!SPIFFS_CHECK_CFG((fs))) {
(fs)->err_code = SPIFFS_ERR_NOT_CONFIGURED;
return;
}

if (!SPIFFS_CHECK_MOUNT(fs)) {
fs->err_code = SPIFFS_ERR_NOT_MOUNTED;
return;
Expand Down Expand Up @@ -719,11 +723,17 @@ s32_t SPIFFS_rename(spiffs *fs, char *old, char *new) {

spiffs_DIR *SPIFFS_opendir(spiffs *fs, char *name, spiffs_DIR *d) {
(void)name;
SPIFFS_API_CHECK_CFG(fs);

if (!SPIFFS_CHECK_CFG((fs))) {
(fs)->err_code = SPIFFS_ERR_NOT_CONFIGURED;
return 0;
}

if (!SPIFFS_CHECK_MOUNT(fs)) {
fs->err_code = SPIFFS_ERR_NOT_MOUNTED;
return 0;
}

d->fs = fs;
d->block = 0;
d->entry = 0;
Expand Down

0 comments on commit 5f57130

Please sign in to comment.