From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2DC063850423; Thu, 3 Sep 2020 11:29:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2DC063850423 From: "gprocida+abigail at google dot com" To: libabigail@sourceware.org Subject: [Bug default/26571] New: get_vmlinux_path_from_kernel_dist contains useless code Date: Thu, 03 Sep 2020 11:29:44 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: libabigail X-Bugzilla-Component: default X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gprocida+abigail at google dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: dodji at redhat dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: libabigail@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Mailing list of the Libabigail project List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Sep 2020 11:29:45 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D26571 Bug ID: 26571 Summary: get_vmlinux_path_from_kernel_dist contains useless code Product: libabigail Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: default Assignee: dodji at redhat dot com Reporter: gprocida+abigail at google dot com CC: libabigail at sourceware dot org Target Milestone: --- get_vmlinux_path_from_kernel_dist has the following statement: if (dir_exists(dist_root + "/lib/modules")) dist_root + "/lib/modules"; It should probably read: if (dir_exists(dist_root + "/lib/modules")) dist_root +=3D "/lib/modules"; However, I don't know if the existing behaviour is now relied on by anythin= g. There is also a confusing (copy/paste?) comment referring to "/usr/lib/debu= g". (This bug report was brought to you with the assistance of clang-tidy which flagged that "dist_root" was an unnecessary copy of "from".) --=20 You are receiving this mail because: You are on the CC list for the bug.=