ipc, kernel: clear whitespace
[linux-2.6-block.git] / ipc / msg.c
index d608e6dde91948c769521b02333747f075b5649f..7ed1ef338e768c9d5734ec01a6a349bb19f636a5 100644 (file)
--- a/ipc/msg.c
+++ b/ipc/msg.c
@@ -611,23 +611,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;
 }