aboutsummaryrefslogtreecommitdiffstats
path: root/ipc/msg.c
diff options
context:
space:
mode:
authorPaul McQuade <paulmcquad@gmail.com>2014-06-06 17:37:37 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-06-06 19:08:14 -0400
commit46c0a8ca3e841b14a1d981e2116eaf2d1c7f2235 (patch)
tree44b72ebf4cb7c891f2cb8690aefd506251f49191 /ipc/msg.c
parent7153e402731c3e72331633d1ac15a654768aecac (diff)
ipc, kernel: clear whitespace
trailing whitespace Signed-off-by: Paul McQuade <paulmcquad@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'ipc/msg.c')
-rw-r--r--ipc/msg.c31
1 files changed, 15 insertions, 16 deletions
diff --git a/ipc/msg.c b/ipc/msg.c
index d608e6dde919..7ed1ef338e76 100644
--- a/ipc/msg.c
+++ b/ipc/msg.c
@@ -611,23 +611,22 @@ SYSCALL_DEFINE3(msgctl, int, msqid, int, cmd, struct msqid_ds __user *, buf)
611 611
612static int testmsg(struct msg_msg *msg, long type, int mode) 612static int testmsg(struct msg_msg *msg, long type, int mode)
613{ 613{
614 switch (mode) 614 switch (mode) {
615 { 615 case SEARCH_ANY:
616 case SEARCH_ANY: 616 case SEARCH_NUMBER:
617 case SEARCH_NUMBER: 617 return 1;
618 case SEARCH_LESSEQUAL:
619 if (msg->m_type <= type)
618 return 1; 620 return 1;
619 case SEARCH_LESSEQUAL: 621 break;
620 if (msg->m_type <= type) 622 case SEARCH_EQUAL:
621 return 1; 623 if (msg->m_type == type)
622 break; 624 return 1;
623 case SEARCH_EQUAL: 625 break;
624 if (msg->m_type == type) 626 case SEARCH_NOTEQUAL:
625 return 1; 627 if (msg->m_type != type)
626 break; 628 return 1;
627 case SEARCH_NOTEQUAL: 629 break;
628 if (msg->m_type != type)
629 return 1;
630 break;
631 } 630 }
632 return 0; 631 return 0;
633} 632}