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>
This commit is contained in:
parent
ce52449742
commit
8cd5283b89
@ -220,8 +220,7 @@ asmlinkage long sys_msgget (key_t key, int msgflg)
|
|||||||
ret = -EEXIST;
|
ret = -EEXIST;
|
||||||
} else {
|
} else {
|
||||||
msq = msg_lock(id);
|
msq = msg_lock(id);
|
||||||
if(msq==NULL)
|
BUG_ON(msq==NULL);
|
||||||
BUG();
|
|
||||||
if (ipcperms(&msq->q_perm, msgflg))
|
if (ipcperms(&msq->q_perm, msgflg))
|
||||||
ret = -EACCES;
|
ret = -EACCES;
|
||||||
else {
|
else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user