b43-asm: Only warning, not error, on RET after JMP
authorMichael Buesch <mb@bu3sch.de>
Sat, 24 May 2008 18:24:55 +0000 (20:24 +0200)
committerMichael Buesch <mb@bu3sch.de>
Sat, 24 May 2008 18:24:55 +0000 (20:24 +0200)
Sometimes it's valid to have a RET after a JMP

Signed-off-by: Michael Buesch <mb@bu3sch.de>
assembler/main.c
assembler/selftest.sh

index ab79f7eaaa74f13f51c32f33f41d3a8504b53983..54252dabe95fe89b762524ced673fd3d4a80fd5c 100644 (file)
@@ -823,8 +823,8 @@ static void assemble_instruction(struct assembler_context *ctx,
                        /* Search the last insn. */
                        if (out->type == OUT_INSN) {
                                if (out->is_jump_insn) {
-                                       asm_error(ctx, "RET instruction directly after "
-                                                 "jump instruction. The hardware won't like this.");
+                                       asm_warn(ctx, "RET instruction directly after "
+                                                "jump instruction. The hardware won't like this.");
                                }
                                break;
                        }
index 7f2f0c556929274156ab34a0df4678f1cb6c5256..99dbf1733affa60a10ddb0a81f2d88eaa8c6306c 100755 (executable)
@@ -72,6 +72,6 @@ if [ "$orig_sum" != "$out_sum" ]; then
        echo "FAILURE: Checksums don't match!"
        exit 1
 fi
-echo "Everything is OK"
+echo "Checksums match"
 
 exit 0