]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - ipc/util.c
Merge branch 'upstream'
[linux-2.6-omap-h63xx.git] / ipc / util.c
index 23151ef3259030d00b6fee264edf2f42e80e0560..5e785a29e1e63349ff35f8a1b3282f468fd24277 100644 (file)
@@ -266,8 +266,7 @@ struct kern_ipc_perm* ipc_rmid(struct ipc_ids* ids, int id)
 {
        struct kern_ipc_perm* p;
        int lid = id % SEQ_MULTIPLIER;
-       if(lid >= ids->entries->size)
-               BUG();
+       BUG_ON(lid >= ids->entries->size);
 
        /* 
         * do not need a rcu_dereference()() here to force ordering
@@ -275,8 +274,7 @@ struct kern_ipc_perm* ipc_rmid(struct ipc_ids* ids, int id)
         */     
        p = ids->entries->p[lid];
        ids->entries->p[lid] = NULL;
-       if(p==NULL)
-               BUG();
+       BUG_ON(p==NULL);
        ids->in_use--;
 
        if (lid == ids->max_id) {