]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ipc/shm.c: remove the superfluous break
authorLiao Pingfang <liao.pingfang@zte.com.cn>
Wed, 12 Aug 2020 01:37:08 +0000 (18:37 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 12 Aug 2020 17:58:02 +0000 (10:58 -0700)
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>
ipc/shm.c

index fd296135a5e6a116e1361c7c984c4c33df05327c..f1ed36e3ac9fe3695cd23e0df5a483dfec3fdae9 100644 (file)
--- a/ipc/shm.c
+++ b/ipc/shm.c
@@ -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;
        }