Messages in this thread Patch in this message | | | From | Yi Wang <> | Subject | [PATCH] ipc/shm.c: Remove the superfluous break | Date | Tue, 14 Jul 2020 18:59:21 +0800 |
| |
From: Liao Pingfang <liao.pingfang@zte.com.cn>
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> --- 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
| |