Skip to contentSkip to conversation

ipc/shm.c: Remove the superfluous break

PATCH Applied Yi Wang 1 participant 1 message Jul 14, 2020

lore
Share & tools
lore

Yi Wang

author
#0 lore raw

PATCH 1/1 ipc/shm.c: Remove the superfluous break

From: Liao Pingfang <[email protected]>

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

---
 ipc/shm.c | 1 -
 1 file changed, 1 deletion(-)
ipc/shm.c +0 -1
index 0a6dd94..fbf369fa 100644
@@ -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;
 	}
Signature · 1 line
2.9.5