mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 03:06:10 +00:00
ipc: remove unreachable code in sem.c
This line is unreachable, remove it. [akpm@linux-foundation.org: remove unneeded initialisation of `err'] Signed-off-by: WANG Cong <amwang@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
d987f8b213
commit
e5cc9c7b1a
1 changed files with 1 additions and 2 deletions
|
@ -624,7 +624,7 @@ static unsigned long copy_semid_to_user(void __user *buf, struct semid64_ds *in,
|
|||
static int semctl_nolock(struct ipc_namespace *ns, int semid,
|
||||
int cmd, int version, union semun arg)
|
||||
{
|
||||
int err = -EINVAL;
|
||||
int err;
|
||||
struct sem_array *sma;
|
||||
|
||||
switch(cmd) {
|
||||
|
@ -701,7 +701,6 @@ static int semctl_nolock(struct ipc_namespace *ns, int semid,
|
|||
default:
|
||||
return -EINVAL;
|
||||
}
|
||||
return err;
|
||||
out_unlock:
|
||||
sem_unlock(sma);
|
||||
return err;
|
||||
|
|
Loading…
Reference in a new issue