All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ipc/shm.c: Remove the superfluous break
@ 2020-07-14 10:59 Yi Wang
  0 siblings, 0 replies; only message in thread
From: Yi Wang @ 2020-07-14 10:59 UTC (permalink / raw)
  To: akpm
  Cc: walken, vbabka, yanaijie, daniel.m.jordan, linux-kernel,
	xue.zhihong, wang.yi59, wang.liang82, Liao Pingfang

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-07-14 10:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-14 10:59 [PATCH] ipc/shm.c: Remove the superfluous break Yi Wang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.