Skip to content

Commit

Permalink
ipc/shm.c: remove the superfluous break
Browse files Browse the repository at this point in the history
Remove the superfuous break, as there is a 'return' before it.

Signed-off-by: Liao Pingfang <liao.pingfang@zte.com.cn>
Signed-off-by: Yi Wang <wang.yi59@zte.com.cn>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Link: http://lkml.kernel.org/r/1594724361-11525-1-git-send-email-wang.yi59@zte.com.cn
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Liao Pingfang authored and Linus Torvalds committed Aug 12, 2020
1 parent 00898e8 commit ce14489
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion ipc/shm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1380,7 +1380,6 @@ static long compat_ksys_shmctl(int shmid, int cmd, void __user *uptr, int versio
case SHM_LOCK:
case SHM_UNLOCK:
return shmctl_do_lock(ns, shmid, cmd);
break;
default:
return -EINVAL;
}
Expand Down

0 comments on commit ce14489

Please sign in to comment.