- hsa has been already dereferenced before it's even checked for NULL in
both hsaInit() and hsaNext()
- they're just internal interfaces with limited number of callers, we know
hsa can't be NULL
? &hsa->format->u.array.format->u.tag :
NULL));
- if (hsa != NULL) {
- hsa->i = 0;
- if (tag != NULL && tag->tag == -2)
- hsa->hi = headerInitIterator(hsa->h);
- }
+ hsa->i = 0;
+ if (tag != NULL && tag->tag == -2)
+ hsa->hi = headerInitIterator(hsa->h);
return hsa;
}
? &hsa->format->u.array.format->u.tag :
NULL));
- if (hsa != NULL && hsa->i >= 0 && hsa->i < hsa->numTokens) {
+ if (hsa->i >= 0 && hsa->i < hsa->numTokens) {
fmt = hsa->format + hsa->i;
if (hsa->hi == NULL) {
hsa->i++;
*/
static headerSprintfArgs hsaFini(headerSprintfArgs hsa)
{
- if (hsa != NULL) {
- hsa->hi = headerFreeIterator(hsa->hi);
- hsa->i = 0;
- }
+ hsa->hi = headerFreeIterator(hsa->hi);
+ hsa->i = 0;
return hsa;
}