[PATCH] ipc/shm.c: Remove the superfluous break

From: Yi Wang
Date: Tue Jul 14 2020 - 06:56:17 EST


From: Liao Pingfang <liao.pingfang@xxxxxxxxxx>

Remove the superfuous break, as there is a 'return' before it.

Signed-off-by: Liao Pingfang <liao.pingfang@xxxxxxxxxx>
Signed-off-by: Yi Wang <wang.yi59@xxxxxxxxxx>
---
ipc/shm.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/ipc/shm.c b/ipc/shm.c
index 0a6dd94..fbf369fa 100644
--- a/ipc/shm.c
+++ b/ipc/shm.c
@@ -1381,7 +1381,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;
}
--
2.9.5