Commit dd96701c authored by Jesper Juhl's avatar Jesper Juhl Committed by Linus Torvalds

[PATCH] arch/mips/kernel/irixsig: slight rework of irix_sigsendset

Slight rework of arch/mips/kernel/irixsig.c::irix_sigsendset to eliminate the
use of a local variable, a goto and shorten the code a bit.
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>
parent 4e130d8f
......@@ -840,20 +840,14 @@ struct irix_procset {
asmlinkage int irix_sigsendset(struct irix_procset *pset, int sig)
{
int error;
if (!access_ok(VERIFY_READ, pset, sizeof(*pset)))
return -EFAULT;
if (!access_ok(VERIFY_READ, pset, sizeof(*pset))) {
error = -EFAULT;
goto out;
}
#ifdef DEBUG_SIG
printk("[%s:%d] irix_sigsendset([%d,%d,%d,%d,%d],%d)\n",
current->comm, current->pid,
pset->cmd, pset->ltype, pset->lid, pset->rtype, pset->rid,
sig);
#endif
error = -EINVAL;
out:
return error;
return -EINVAL;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment