Skip to contentSkip to conversation

ipc:msg.c same indent for switch/case

PATCH In review Paul McQuade 1 participant 1 message Apr 10, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 2/15 ipc:msg.c same indent for switch/case

ERROR: switch and case should be at the same indent

---
 ipc/msg.c | 31 +++++++++++++++----------------
 1 file changed, 15 insertions(+), 16 deletions(-)
ipc/msg.c +15 -16
index a385372..45c6360 100644
@@ -612,23 +612,22 @@ SYSCALL_DEFINE3(msgctl, int, msqid, int, cmd, struct msqid_ds __user *, buf)
 
 static int testmsg(struct msg_msg *msg, long type, int mode)
 {
-	switch (mode)
-	{
-		case SEARCH_ANY:
-		case SEARCH_NUMBER:
+	switch (mode) {
+	case SEARCH_ANY:
+	case SEARCH_NUMBER:
+		return 1;
+	case SEARCH_LESSEQUAL:
+		if (msg->m_type <= type)
 			return 1;
-		case SEARCH_LESSEQUAL:
-			if (msg->m_type <= type)
-				return 1;
-			break;
-		case SEARCH_EQUAL:
-			if (msg->m_type == type)
-				return 1;
-			break;
-		case SEARCH_NOTEQUAL:
-			if (msg->m_type != type)
-				return 1;
-			break;
+		break;
+	case SEARCH_EQUAL:
+		if (msg->m_type == type)
+			return 1;
+		break;
+	case SEARCH_NOTEQUAL:
+		if (msg->m_type != type)
+			return 1;
+		break;
 	}
 	return 0;
 }
Signature · 1 line
1.8.3.2