Skip to content

Commit

Permalink
No sense checking isfail() before require_newline()...it's redundant.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Dec 10, 2008
1 parent 12194b7 commit 8a2e8b7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mojoshader_assembler.c
Expand Up @@ -1328,9 +1328,7 @@ static int parse_instruction_token(Context *ctx)
ctx->tokenbufpos = 0;

const int tokcount = instruction->parse_args(ctx);
if (isfail(ctx))
return FAIL;
else if (require_endline(ctx) == FAIL)
if (require_endline(ctx) == FAIL)
return FAIL;

// insttoks bits are reserved and should be zero if < SM2.
Expand Down

0 comments on commit 8a2e8b7

Please sign in to comment.