From patchwork Wed Nov 8 03:37:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tobin Harding X-Patchwork-Id: 10047605 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 A5A4E603FA for ; Wed, 8 Nov 2017 03:38:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 98F4D2A3A8 for ; Wed, 8 Nov 2017 03:38:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8D8C12A3A9; Wed, 8 Nov 2017 03:38:31 +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 CFC172A3A7 for ; Wed, 8 Nov 2017 03:38:30 +0000 (UTC) Received: (qmail 11299 invoked by uid 550); 8 Nov 2017 03:38:09 -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 9943 invoked from network); 8 Nov 2017 03:38:06 -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=EDaDMNr/H7BHW7f3n/VAkvyRT9RqieNxo Ocw8eggeERR7o2FTGFnDC7hwN3XlsNSV8uAXFuIswU5hz5pPCp/rbCHoEg1nxNOE O5EmWcDdhQ905C5VIbC6kt23UXivnK6IdhFGnNbvZY9jWdra3Ad4/j9njdfe/LNh EjIraMO6+EG4deHEtxb4QDr5b7g+LXnXKahqxVTJwNqrfX1ggrHl5qGqxID/dxTb A76V/Gn00WORp4AgVQM3/VR48XLUb3hXf2+1bVNNvEot8UxOFS1wFJIsYfBocIAK ilnf4xQ0+AAtWMwPVwFaLoSPVnEEVkvam9PrYUhvZ6rWgRJAO785A== 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=MBxwPwR5 BxcVGepL3xzAo+aUONzNScG1mLw/hFP58vkhOl5Dm+2EWB/nZ0y9LKwfnqC06WlM odmZqkoXoy2zHkYmnASfiVpAySo2uBscCiMZk469KJn9q2UmWIS+wZsAP/VYgvUT 1WKxI3EfBfpVt1pMDhLf0vk+PKOPa8YjeeraoXjs6z7jHRlEGLcaHYeleLqSWIWt J5k75uU+viQ+svUkFmX7lUK/O3QSJCDPJDjJNTqrRNVg9Z5kW1HOYPvLSLt4QM4w IAteCyo4PIlHA0DlFX2AebMJtMt821lGtJw6AzK8xSiifgyJ0zwsQUZ121SLIxUL dgJ8BoTw5BmQpg== 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 , linux-kernel@vger.kernel.org, Network Development , David Miller , kernel-hardening@lists.openwall.com, "Paul E. McKenney" , Andy Lutomirski , Peter Zijlstra Date: Wed, 8 Nov 2017 14:37:34 +1100 Message-Id: <1510112259-11572-3-git-send-email-me@tobin.cc> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1510112259-11572-1-git-send-email-me@tobin.cc> References: <1510112259-11572-1-git-send-email-me@tobin.cc> Subject: [kernel-hardening] [PATCH 2/7] 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));