Skip to content

Commit

Permalink
Addressed Style Warnings.
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Fetros <[email protected]>
  • Loading branch information
PetFet committed Mar 31, 2020
1 parent 2b106e1 commit 3c9d3b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/placement/tests/jump_map_place_obj.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ rebuild_object_class(daos_oclass_id_t cid)
spare_tgt_ranks, shard_ids,
SPARE_MAX_NUM, -1);

D_ASSERT(0 <= num_new_spares && num_new_spares < 2);
D_ASSERT(num_new_spares >= 0 && num_new_spares < 2);
}


Expand Down
2 changes: 1 addition & 1 deletion src/placement/tests/place_obj_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ reint_check(struct pl_obj_layout *layout, struct pl_obj_layout *temp_layout,
uint32_t original_target;
uint32_t reint_target;

D_ASSERT(0 <= num_reint && num_reint < 2);
D_ASSERT(num_reint >= 0 && num_reint < 2);

/* can't rebuild non replicated date */
if (temp_layout->ol_grp_size == 1) {
Expand Down

0 comments on commit 3c9d3b9

Please sign in to comment.