diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-03-24 12:44:22 -0500 |
---|---|---|
committer | Adrian Bunk <bunk@stusta.de> | 2006-03-24 12:44:22 -0500 |
commit | 8cd5283b897f56004631944dd2888e9a7b843f89 (patch) | |
tree | a4a00feee4c2a8ec82a7ee939ca361c5433aeb37 | |
parent | ce52449742697f6f51be2a7c275a4ab2a73885b8 (diff) |
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>
-rw-r--r-- | ipc/msg.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -220,8 +220,7 @@ asmlinkage long sys_msgget (key_t key, int msgflg) | |||
220 | ret = -EEXIST; | 220 | ret = -EEXIST; |
221 | } else { | 221 | } else { |
222 | msq = msg_lock(id); | 222 | msq = msg_lock(id); |
223 | if(msq==NULL) | 223 | BUG_ON(msq==NULL); |
224 | BUG(); | ||
225 | if (ipcperms(&msq->q_perm, msgflg)) | 224 | if (ipcperms(&msq->q_perm, msgflg)) |
226 | ret = -EACCES; | 225 | ret = -EACCES; |
227 | else { | 226 | else { |