Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e5cc9c7b authored by Amerigo Wang's avatar Amerigo Wang Committed by Linus Torvalds
Browse files

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: default avatarWANG Cong <amwang@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent d987f8b2
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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;