Skip to content

Commit 3c49fe0

Browse files
committed
fix: removed duplicate variable
1 parent b14ce2e commit 3c49fe0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

fpga/assembler.cc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,9 @@ static absl::Status ProcessFasmFeatures(
108108
absl::flat_hash_set<fpga::ConfigBusType> used_config_buses;
109109
// Select only bit addresses with value bit set to 1.
110110
for (int addr = 0; addr < tile_feature.width; ++addr) {
111-
const unsigned bit_addr = (addr + tile_feature.start_bit);
112-
const bool value = bits & (1 << bit_addr);
111+
const unsigned feature_addr = (addr + tile_feature.start_bit);
112+
const bool value = bits & (1 << feature_addr);
113113
if (value) {
114-
const int feature_addr = addr + tile_feature.start_bit;
115114
db.ConfigBits(
116115
tile_name, feature, feature_addr,
117116
[&frames, &used_config_buses](

0 commit comments

Comments
 (0)