From patchwork Thu Nov 9 05:09:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tobin Harding X-Patchwork-Id: 10050109 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 90D8F602D7 for ; Thu, 9 Nov 2017 05:10:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7ECCD29B01 for ; Thu, 9 Nov 2017 05:10:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 72FD72AA0C; Thu, 9 Nov 2017 05:10:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from mother.openwall.net (mother.openwall.net [195.42.179.200]) by mail.wl.linuxfoundation.org (Postfix) with SMTP id B19CC29B01 for ; Thu, 9 Nov 2017 05:10:26 +0000 (UTC) Received: (qmail 32574 invoked by uid 550); 9 Nov 2017 05:10:11 -0000 Mailing-List: contact kernel-hardening-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Delivered-To: mailing list kernel-hardening@lists.openwall.com Received: (qmail 32470 invoked from network); 9 Nov 2017 05:10:10 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tobin.cc; h=cc :date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=ejwhCN7GAnzDKaH3L JEcaTS37NbH/JxB/xYxHSdbp6c=; b=jB0gizh4ksim+VPs+/gRfUa0myJjxxmUy cENL+jxHj+UzA+fYgP7eqrMOAo90oP9y+O4Qqn0Z0EbMHER0z4rz/+gl4HzXWe6g suqdSGDdIsO4kuVc5X4hinorh4fdNC88BLTJpU2ASvuLi1GLHnYazJi1ZqqQRdR5 aCJ0AcALFiVT0h4nBCd/MMKHT7OhYjRebsOMQNTyfS62UiGjmzNwxHouubhjyZHD 6UXJ1invele0Bf/iP8Y9V72bgLwwwsJAfRBEVX81dObUEKpVi5i5McOwx6pSBqRZ Ks+5lWoc2H3J/k2+TObc53E4QU6B/9VEZXTa4YSocq+KnbcRphCVg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=ejwhCN7GAnzDKaH3LJEcaTS37NbH/JxB/xYxHSdbp6c=; b=NPj7+qg5 WPHNwr3kp9oR2t4YzzFfWTxPzT49lhd8KwhkIZG8U21qj19aV+9354UnoLRlFvT7 FyYU5OF79S+aR23x0H/qoouGyvblRExlxQy7wS60NILPPOIUyO12zkWVrYLj/AuN E8v8MGBJn7gghFCilW7l4FY8BNk/nOqEvbdwt0XaNMMmEJMr/6PaCGsNARuWF4AJ cLlhjD7BFrLHah21fLwxN/oJxyktMhwiLtwmpDSdZfGRPSANO/0DKV7Mx70S3Szn ZWIqFsdCTKxsz1uZRabEuLI5n0PvKEi6fmwPYESRlYRMtEq8+ldz3ReOYdU67NUy 6KrexEhoG18pOw== X-ME-Sender: From: "Tobin C. Harding" To: Linus Torvalds Cc: "Tobin C. Harding" , "Jason A. Donenfeld" , Theodore Ts'o , Kees Cook , Paolo Bonzini , Tycho Andersen , "Roberts, William C" , Tejun Heo , Jordan Glover , Greg KH , Petr Mladek , Joe Perches , Ian Campbell , Sergey Senozhatsky , Catalin Marinas , Will Deacon , Steven Rostedt , Chris Fries , Dave Weinstein , Daniel Micay , Djalal Harouni , "Paul E. McKenney" , Andy Lutomirski , Peter Zijlstra , Michael Ellerman , David Miller , Network Development , linux-kernel@vger.kernel.org, kernel-hardening@lists.openwall.com Date: Thu, 9 Nov 2017 16:09:29 +1100 Message-Id: <1510204175-10138-3-git-send-email-me@tobin.cc> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1510204175-10138-1-git-send-email-me@tobin.cc> References: <1510204175-10138-1-git-send-email-me@tobin.cc> Subject: [kernel-hardening] [PATCH v2 2/8] scripts/leaking_addresses: remove dead code X-Virus-Scanned: ClamAV using ClamSMTP debug_arrays is not called. Also, %seen hash is not used. We should remove unused code. Remove dead code. Signed-off-by: Tobin C. Harding --- scripts/leaking_addresses.pl | 9 --------- 1 file changed, 9 deletions(-) diff --git a/scripts/leaking_addresses.pl b/scripts/leaking_addresses.pl index b64efcecbb5e..94b22d5b9237 100755 --- a/scripts/leaking_addresses.pl +++ b/scripts/leaking_addresses.pl @@ -133,14 +133,6 @@ walk(@DIRS); exit 0; -sub debug_arrays -{ - print 'dirs_any: ' . join(", ", @skip_walk_dirs_any) . "\n"; - print 'dirs_abs: ' . join(", ", @skip_walk_dirs_abs) . "\n"; - print 'parse_any: ' . join(", ", @skip_parse_files_any) . "\n"; - print 'parse_abs: ' . join(", ", @skip_parse_files_abs) . "\n"; -} - sub dprint { printf(STDERR @_) if $debug; @@ -281,7 +273,6 @@ sub skip_walk sub walk { my @dirs = @_; - my %seen; while (my $pwd = shift @dirs) { next if (skip_walk($pwd));