about summary refs log tree commit homepage
path: root/fdmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'fdmap.h')
-rw-r--r--fdmap.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/fdmap.h b/fdmap.h
index a5d5f9e..c21aff8 100644
--- a/fdmap.h
+++ b/fdmap.h
@@ -14,15 +14,13 @@ static inline struct mog_fd * mog_fd_of(void *as_obj)
 /* used to validate a mog_fd is never in two queues at once */
 static inline void mog_fd_check_in(struct mog_fd *mfd)
 {
-        assert(mog_sync_add_and_fetch(&mfd->in_queue, 1) == 1 &&
-               "in_queue counter off (check in)");
+        /* currently unused */
 }
 
 /* used to validate a mog_fd is never in two queues at once */
 static inline void mog_fd_check_out(struct mog_fd *mfd)
 {
-        assert(mog_sync_sub_and_fetch(&mfd->in_queue, 1) == 0 &&
-               "in_queue counter off (check out)");
+        /* currently unused */
 }
 
 static inline struct mog_fd * mog_fd_init(int fd, enum mog_fd_type fd_type)
@@ -32,7 +30,6 @@ static inline struct mog_fd * mog_fd_init(int fd, enum mog_fd_type fd_type)
         mfd->fd = fd;
         mfd->fd_type = fd_type;
         mfd->queue_state = MOG_QUEUE_STATE_NEW;
-        assert((mfd->in_queue = 0) == 0 && "in_queue check");
 
         return mfd;
 }