summaryrefslogtreecommitdiff
path: root/ipc
diff options
context:
space:
mode:
authorEric Sesterhenn <snakebyte@gmx.de>2006-03-24 18:44:22 +0100
committerAdrian Bunk <bunk@stusta.de>2006-03-24 18:44:22 +0100
commit8cd5283b897f56004631944dd2888e9a7b843f89 (patch)
treea4a00feee4c2a8ec82a7ee939ca361c5433aeb37 /ipc
parentce52449742697f6f51be2a7c275a4ab2a73885b8 (diff)
downloadlinux-3.10-8cd5283b897f56004631944dd2888e9a7b843f89.tar.gz
linux-3.10-8cd5283b897f56004631944dd2888e9a7b843f89.tar.bz2
linux-3.10-8cd5283b897f56004631944dd2888e9a7b843f89.zip
BUG_ON() Conversion in ipc/msg.c
this changes if() BUG(); constructs to BUG_ON() which is cleaner, contains unlikely() and can better optimized away. Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de> Signed-off-by: Adrian Bunk <bunk@stusta.de>
Diffstat (limited to 'ipc')
-rw-r--r--ipc/msg.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ipc/msg.c b/ipc/msg.c
index fbf757064a3..60c1e5c2341 100644
--- a/ipc/msg.c
+++ b/ipc/msg.c
@@ -220,8 +220,7 @@ asmlinkage long sys_msgget (key_t key, int msgflg)
ret = -EEXIST;
} else {
msq = msg_lock(id);
- if(msq==NULL)
- BUG();
+ BUG_ON(msq==NULL);
if (ipcperms(&msq->q_perm, msgflg))
ret = -EACCES;
else {