diff options
| author | Amerigo Wang <amwang@redhat.com> | 2009-12-15 19:47:35 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-12-16 10:20:10 -0500 |
| commit | e5cc9c7b1a3e7ae4d700d9fce168fb597bcfe9b6 (patch) | |
| tree | 567e8b359132aa0a542c2d940274727003c0c9f1 /ipc | |
| parent | d987f8b213f2cdcc52b2ca9ee67161516e4d256a (diff) | |
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>
Diffstat (limited to 'ipc')
| -rw-r--r-- | ipc/sem.c | 3 |
1 files changed, 1 insertions, 2 deletions
| @@ -624,7 +624,7 @@ static unsigned long copy_semid_to_user(void __user *buf, struct semid64_ds *in, | |||
| 624 | static int semctl_nolock(struct ipc_namespace *ns, int semid, | 624 | static int semctl_nolock(struct ipc_namespace *ns, int semid, |
| 625 | int cmd, int version, union semun arg) | 625 | int cmd, int version, union semun arg) |
| 626 | { | 626 | { |
| 627 | int err = -EINVAL; | 627 | int err; |
| 628 | struct sem_array *sma; | 628 | struct sem_array *sma; |
| 629 | 629 | ||
| 630 | switch(cmd) { | 630 | switch(cmd) { |
| @@ -701,7 +701,6 @@ static int semctl_nolock(struct ipc_namespace *ns, int semid, | |||
| 701 | default: | 701 | default: |
| 702 | return -EINVAL; | 702 | return -EINVAL; |
| 703 | } | 703 | } |
| 704 | return err; | ||
| 705 | out_unlock: | 704 | out_unlock: |
| 706 | sem_unlock(sma); | 705 | sem_unlock(sma); |
| 707 | return err; | 706 | return err; |
