No sense checking isfail() before require_newline()...it's redundant.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 10 Dec 2008 03:54:19 -0500
changeset 483 da581f578e1c
parent 482 3f740f25bd7e
child 484 dfce8e965115
No sense checking isfail() before require_newline()...it's redundant.
mojoshader_assembler.c
--- a/mojoshader_assembler.c	Wed Dec 10 03:53:57 2008 -0500
+++ b/mojoshader_assembler.c	Wed Dec 10 03:54:19 2008 -0500
@@ -1328,9 +1328,7 @@
     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.