Skip to content

Commit 838732e

Browse files
committed
icell_liberty: simplify
1 parent ab03d33 commit 838732e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

passes/cmds/icell_liberty.cc

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,7 @@ struct IcellLiberty : Pass {
185185
pool<RTLIL::IdString> done;
186186
LibertyStubber stubber = {};
187187

188-
if (liberty_file)
189-
stubber.liberty_prefix(*liberty_file);
188+
stubber.liberty_prefix(*liberty_file);
190189

191190
for (auto module : d->selected_modules()) {
192191
for (auto cell : module->selected_cells()) {
@@ -201,9 +200,7 @@ struct IcellLiberty : Pass {
201200
}
202201
}
203202

204-
if (liberty_file) {
205-
stubber.liberty_suffix(*liberty_file);
206-
}
203+
stubber.liberty_suffix(*liberty_file);
207204
}
208205
} IcellLiberty;
209206

0 commit comments

Comments
 (0)