diff --git a/src/adc/sid.c b/src/adc/sid.c index 85f43bb..f334516 100644 --- a/src/adc/sid.c +++ b/src/adc/sid.c @@ -120,7 +120,6 @@ void sid_pool_destroy(struct sid_pool* pool) sid_t sid_alloc(struct sid_pool* pool, struct hub_user* user) { sid_t n; - if (pool->count >= (pool->max - pool->min)) { #ifdef DEBUG_SID @@ -129,8 +128,7 @@ sid_t sid_alloc(struct sid_pool* pool, struct hub_user* user) return 0; } - n = ++pool->count; - + n = (++pool->count); for (; (pool->map[n % pool->max]); n++) ; #ifdef DEBUG_SID