Skip to content

Commit ce14489

Browse files
Liao Pingfangtorvalds
authored andcommitted
ipc/shm.c: remove the superfluous break
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>
1 parent 00898e8 commit ce14489

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎ipc/shm.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1380,7 +1380,6 @@ static long compat_ksys_shmctl(int shmid, int cmd, void __user *uptr, int versio
13801380
case SHM_LOCK:
13811381
case SHM_UNLOCK:
13821382
return shmctl_do_lock(ns, shmid, cmd);
1383-
break;
13841383
default:
13851384
return -EINVAL;
13861385
}

0 commit comments

Comments
 (0)