• Jesper Juhl's avatar
    [PATCH] arch/sparc/kernel/ptrace: pointless assignment and shadowed var · 2425d5f4
    Jesper Juhl authored
    A few tiny cleanups for arch/sparc/kernel/ptrace.c::do_ptrace post the big
    verify_area/access_ok cleanup.
    
    'ret' shadows a variable of the same name in the enclosing scope, rename it.
    
    The assignment of -EFAULT to 'i' exactely mirrors what the old verify_area
    code did, but that was only to use 'i' to check the return value of
    verify_area.  Now that we check access_ok directly and 'i' is initialized in
    the for loop a few lines below anyway, the asignment of -EFAULT to i is bogus,
    just pass pass EFAULT directly as the second arg to pt_error_return. 
    
    Also a few tiny whitespace cleanups - 'if ()' vs 'if()'.
    Signed-off-by: default avatarJesper Juhl <jesper.juhl@gmail.com>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    2425d5f4
ptrace.c 14.7 KB