mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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 <[email protected]> Signed-off-by: Adrian Bunk <[email protected]>
This commit is contained in:
parent
ce52449742
commit
8cd5283b89
1 changed files with 1 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue