HAMMER - Remove unused variable
authorIlya Dryomov <idryomov@gmail.com>
Thu, 30 Dec 2010 11:41:08 +0000 (13:41 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 30 Dec 2010 11:50:44 +0000 (13:50 +0200)
Although assigned (so GCC was silent), the 'blockmap' variable is
unused in hammer_blockmap_free(), hammer_blockmap_dedup() and
hammer_blockmap_finalize() functions.

sys/vfs/hammer/hammer_blockmap.c

index 35a0ccd..644e620 100644 (file)
@@ -767,7 +767,6 @@ hammer_blockmap_free(hammer_transaction_t trans,
 {
        hammer_mount_t hmp;
        hammer_volume_t root_volume;
-       hammer_blockmap_t blockmap;
        hammer_blockmap_t freemap;
        struct hammer_blockmap_layer1 *layer1;
        struct hammer_blockmap_layer2 *layer2;
@@ -799,7 +798,6 @@ hammer_blockmap_free(hammer_transaction_t trans,
        root_volume = trans->rootvol;
        error = 0;
 
-       blockmap = &hmp->blockmap[zone];
        freemap = &hmp->blockmap[HAMMER_ZONE_FREEMAP_INDEX];
 
        /*
@@ -904,7 +902,6 @@ hammer_blockmap_dedup(hammer_transaction_t trans,
 {
        hammer_mount_t hmp;
        hammer_volume_t root_volume;
-       hammer_blockmap_t blockmap;
        hammer_blockmap_t freemap;
        struct hammer_blockmap_layer1 *layer1;
        struct hammer_blockmap_layer2 *layer2;
@@ -936,7 +933,6 @@ hammer_blockmap_dedup(hammer_transaction_t trans,
        root_volume = trans->rootvol;
        error = 0;
 
-       blockmap = &hmp->blockmap[zone];
        freemap = &hmp->blockmap[HAMMER_ZONE_FREEMAP_INDEX];
 
        /*
@@ -1017,7 +1013,6 @@ hammer_blockmap_finalize(hammer_transaction_t trans,
 {
        hammer_mount_t hmp;
        hammer_volume_t root_volume;
-       hammer_blockmap_t blockmap;
        hammer_blockmap_t freemap;
        struct hammer_blockmap_layer1 *layer1;
        struct hammer_blockmap_layer2 *layer2;
@@ -1047,7 +1042,6 @@ hammer_blockmap_finalize(hammer_transaction_t trans,
        root_volume = trans->rootvol;
        error = 0;
 
-       blockmap = &hmp->blockmap[zone];
        freemap = &hmp->blockmap[HAMMER_ZONE_FREEMAP_INDEX];
 
        /*