mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
Remove some unneeded NULL checks.
Found by http://coccinelle.lip6.fr/rules/notnull.cocci git-svn-id: https://svn.eduke32.com/eduke32@2978 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
26c540e736
commit
8efcc81096
2 changed files with 4 additions and 6 deletions
|
@ -1245,7 +1245,7 @@ static int32_t gloadtile_art(int32_t dapic, int32_t dapal, int32_t dameth, pthty
|
||||||
bglTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_WRAP_T,glinfo.clamptoedge?GL_CLAMP_TO_EDGE:GL_CLAMP);
|
bglTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_WRAP_T,glinfo.clamptoedge?GL_CLAMP_TO_EDGE:GL_CLAMP);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pic) Bfree(pic);
|
Bfree(pic);
|
||||||
|
|
||||||
pth->picnum = dapic;
|
pth->picnum = dapic;
|
||||||
pth->palnum = dapal;
|
pth->palnum = dapal;
|
||||||
|
|
|
@ -215,16 +215,14 @@ int32_t ScanGroups(void)
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
}
|
}
|
||||||
// initprintf("Found %d recognized GRP %s.\n",i,i>1?"files":"file");
|
// initprintf("Found %d recognized GRP %s.\n",i,i>1?"files":"file");
|
||||||
if (buf)
|
|
||||||
Bfree(buf);
|
Bfree(buf);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
initprintf("Found no recognized game data!\n");
|
initprintf("Found no recognized game data!\n");
|
||||||
|
|
||||||
if (buf)
|
Bfree(buf);
|
||||||
Bfree(buf);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue