From 70bbf2596ffa54e93486a7383c73fc6ac7ee4eed Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Wed, 12 Jun 2013 20:22:56 +0200 Subject: [PATCH] Adds an explicative comment about dead code. --- scan.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scan.c b/scan.c index 976fc775..b650bcd7 100644 --- a/scan.c +++ b/scan.c @@ -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;