mirror of
https://github.com/The-OpenROAD-Project/OpenSTA.git
synced 2026-09-04 08:43:04 +02:00
address comment related to Coverity to simplify
Signed-off-by: dsengupta0628 <[email protected]>
This commit is contained in:
+1
-3
@@ -2478,10 +2478,8 @@ bool
|
||||
LibertyPort::less(const LibertyPort *port1,
|
||||
const LibertyPort *port2)
|
||||
{
|
||||
if (port1 == nullptr && port2 != nullptr)
|
||||
return true;
|
||||
if (port1 == nullptr || port2 == nullptr)
|
||||
return false;
|
||||
return port1 == nullptr && port2 != nullptr;
|
||||
const std::string &name1 = port1->name();
|
||||
const std::string &name2 = port2->name();
|
||||
if (name1 == name2) {
|
||||
|
||||
Reference in New Issue
Block a user