Adds an explicative comment about dead code.

This commit is contained in:
Andrea Mazzoleni 2013-06-12 20:22:56 +02:00
parent 7ad4d26e0c
commit 70bbf2596f

3
scan.c
View file

@ -162,6 +162,9 @@ static void scan_file_remove(struct snapraid_state* state, struct snapraid_disk*
struct snapraid_deleted* deleted;
/* adjust the first free position */
/* note that doing all the deletions before alllocations, */
/* first_free_block is always 0 and the "if" is never triggered */
/* but we keep this code anyway for completeness. */
if (disk->first_free_block > block_pos)
disk->first_free_block = block_pos;