• Jesper Juhl's avatar
    [PATCH] remove errornous semicolon in arch/i386/kernel/traps.c::do_general_protection · 0a57a616
    Jesper Juhl authored
    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: default avatarJesper Juhl <juhl-lkml@dif.dk>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    0a57a616
traps.c 26.6 KB