Skip to content

Commit

Permalink
UDNL: Cleanup GetFileStatFromImage return code
Browse files Browse the repository at this point in the history
  • Loading branch information
PSI-Rockin committed Aug 20, 2020
1 parent 503698c commit e977352
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions modules/iopcore/udnl/udnl.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ static struct RomdirFileStat *GetFileStatFromImage(const struct RomImgData *Imag
unsigned int i, offset, ExtInfoOffset;
unsigned char filename_temp[12];
const struct RomDirEntry *RomdirEntry;
struct RomdirFileStat *result;

offset = 0;
ExtInfoOffset = 0;
Expand All @@ -177,8 +176,6 @@ static struct RomdirFileStat *GetFileStatFromImage(const struct RomImgData *Imag

if (RomdirEntry->ExtInfoEntrySize > 0) {
stat->extinfo = (void *)((unsigned int)ImageStat->RomdirEnd + ExtInfoOffset);
result = stat;
goto end;
}

return stat;
Expand All @@ -188,13 +185,9 @@ static struct RomdirFileStat *GetFileStatFromImage(const struct RomImgData *Imag
ExtInfoOffset += RomdirEntry->ExtInfoEntrySize;
RomdirEntry++;
} while (((unsigned int *)RomdirEntry->name)[0] != 0x00000000);

result = NULL;
} else
result = NULL;

end:
return result;
}

return NULL;
}

/* 0x0000055c */
Expand Down

0 comments on commit e977352

Please sign in to comment.