Fix a few checkpatch issues

This commit is contained in:
Antonio Niño Díaz
2019-05-31 12:34:14 +01:00
parent d2bd9a2368
commit cc458a9693
3 changed files with 18 additions and 19 deletions

View File

@@ -497,7 +497,6 @@ void sym_AddEqu(char *tzSym, int32_t value)
nsym->pScope = NULL;
updateSymbolFilename(nsym);
}
}
/*

View File

@@ -199,8 +199,8 @@ static struct RawIndexedImage *indexed_png_to_raw(struct PNGImage *img)
raw_image = create_raw_image(img->width, img->height, colors);
/*
* Transparent palette entries are removed, and the palette is collapsed.
* Transparent pixels are then replaced with palette index 0.
* Transparent palette entries are removed, and the palette is
* collapsed. Transparent pixels are then replaced with palette index 0.
* This way, an indexed PNG can contain transparent pixels in *addition*
* to 4 normal colors.
*/

View File

@@ -695,22 +695,22 @@ void CreateSymbolTable(void)
if ((tSymbol->Type == SYM_EXPORT) &&
((tSymbol->pSection == pSect) ||
(tSymbol->pSection == NULL))) {
if (tSymbol->pSection == NULL)
sym_CreateSymbol(
tSymbol->pzName,
tSymbol->nOffset,
-1,
tSymbol->pzObjFileName,
tSymbol->pzFileName,
tSymbol->nFileLine);
else
sym_CreateSymbol(
tSymbol->pzName,
pSect->nOrg + tSymbol->nOffset,
pSect->nBank,
tSymbol->pzObjFileName,
tSymbol->pzFileName,
tSymbol->nFileLine);
if (tSymbol->pSection == NULL) {
sym_CreateSymbol(tSymbol->pzName,
tSymbol->nOffset,
-1,
tSymbol->pzObjFileName,
tSymbol->pzFileName,
tSymbol->nFileLine);
} else {
sym_CreateSymbol(tSymbol->pzName,
pSect->nOrg +
tSymbol->nOffset,
pSect->nBank,
tSymbol->pzObjFileName,
tSymbol->pzFileName,
tSymbol->nFileLine);
}
}
}
pSect = pSect->pNext;