From 097daeb3c5b8461b15007d3f3610d19f187bab51 Mon Sep 17 00:00:00 2001 From: dsengupta0628 Date: Fri, 10 Apr 2026 18:59:42 +0000 Subject: [PATCH] address comment related to Coverity to simplify Signed-off-by: dsengupta0628 --- liberty/Liberty.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/liberty/Liberty.cc b/liberty/Liberty.cc index c076d64c..19177c68 100644 --- a/liberty/Liberty.cc +++ b/liberty/Liberty.cc @@ -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) {