]> git.neil.brown.name Git - history.git/commit
[PATCH] remove errornous semicolon in arch/i386/kernel/traps.c::do_general_protection
authorJesper Juhl <juhl-lkml@dif.dk>
Tue, 23 Nov 2004 11:40:52 +0000 (03:40 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 23 Nov 2004 11:40:52 +0000 (03:40 -0800)
commit0a57a616d65ff5c872ad9b010a89a09f82e27861
tree1f6a9737e7611d7b1c53f06ec4497daa67f6f2a6
parentcca33aa336465dc845a3c47f514929491880715a
[PATCH] remove errornous semicolon in arch/i386/kernel/traps.c::do_general_protection

Building with gcc -W revealed this warning:
arch/i386/kernel/traps.c: In function `do_general_protection':
arch/i386/kernel/traps.c:506: warning: empty body in an if-statement

upon inspecting the code I see what looks like a mistakenly placed ";"

        if (!fixup_exception(regs)) {
                if (notify_die(DIE_GPF, "general protection fault", regs,
                                error_code, 13, SIGSEGV) == NOTIFY_STOP);
                        return;
                die("general protection fault", regs, error_code);
        }

That ";" after the second if should go away so the return; before die()
is not unconditional.

Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/traps.c