Skip to content

Commit

Permalink
ofproto-dpif-rid: remove unused return value of rid_pool_add()
Browse files Browse the repository at this point in the history
The return value of rid_pool_add() is never used
so the code may be slightly simplified by removing it.

Signed-off-by: Simon Horman <[email protected]>
Signed-off-by: Andy Zhou <[email protected]>
  • Loading branch information
shorman-netronome authored and azhou-nicira committed Sep 25, 2014
1 parent 4673ac1 commit dced21a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ofproto/ofproto-dpif-rid.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ static void rid_pool_uninit(struct rid_pool *pool);
static uint32_t rid_pool_alloc_id(struct rid_pool *pool);
static void rid_pool_free_id(struct rid_pool *rids, uint32_t rid);
static struct rid_node *rid_pool_find(struct rid_pool *rids, uint32_t id);
static struct rid_node *rid_pool_add(struct rid_pool *rids, uint32_t id);
static void rid_pool_add(struct rid_pool *rids, uint32_t id);

struct recirc_id_pool *
recirc_id_pool_create(void)
Expand Down Expand Up @@ -126,7 +126,7 @@ rid_pool_find(struct rid_pool *rids, uint32_t id)
return NULL;
}

static struct rid_node *
static void
rid_pool_add(struct rid_pool *rids, uint32_t id)
{
struct rid_node *rid = xmalloc(sizeof *rid);
Expand All @@ -135,7 +135,6 @@ rid_pool_add(struct rid_pool *rids, uint32_t id)
rid->recirc_id = id;
hash = hash_int(id, 0);
hmap_insert(&rids->map, &rid->node, hash);
return rid;
}

static uint32_t
Expand Down

0 comments on commit dced21a

Please sign in to comment.