[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1594724361-11525-1-git-send-email-wang.yi59@zte.com.cn>
Date: Tue, 14 Jul 2020 18:59:21 +0800
From: Yi Wang <wang.yi59@....com.cn>
To: akpm@...ux-foundation.org
Cc: walken@...gle.com, vbabka@...e.cz, yanaijie@...wei.com,
daniel.m.jordan@...cle.com, linux-kernel@...r.kernel.org,
xue.zhihong@....com.cn, wang.yi59@....com.cn,
wang.liang82@....com.cn, Liao Pingfang <liao.pingfang@....com.cn>
Subject: [PATCH] ipc/shm.c: Remove the superfluous break
From: Liao Pingfang <liao.pingfang@....com.cn>
Remove the superfuous break, as there is a 'return' before it.
Signed-off-by: Liao Pingfang <liao.pingfang@....com.cn>
Signed-off-by: Yi Wang <wang.yi59@....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
Powered by blists - more mailing lists