Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1829694imm; Thu, 23 Aug 2018 09:24:52 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzTnroXi6S4CFGZVgk3hjrvACVWNTd+eBTUuxm+IXCrGJnSV/Iu10jTR6UUZWm/GVkavwCr X-Received: by 2002:a17:902:28c7:: with SMTP id f65-v6mr15597264plb.240.1535041492838; Thu, 23 Aug 2018 09:24:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535041492; cv=none; d=google.com; s=arc-20160816; b=DsrB38k/Ruq3oaTdGb4EWwol/6YjhcVEUwALsMAWIX9EZyb9ZAhkCm0yyYbq6naac7 O7x4HU83dl0CMGP7caoYOErFxKt4c5cMxcE/FvOTYFgyjJlAtGyqCg4n4MVCCMqHm2n4 oXqXQaRvnG0X4ql/PeCOS1p/XZmx0/+IXrxR3wDABzjPZuo1L35oYl6E8rNswjyJS8fW hDxJMmU6TvF2ipVkk4L5DJ9LvHUNxx803uVMmM8YNK0pvi/UmQbxAxVEBpafrzLJH6aI uAKquIO9hgjb3EqMdedYfCvQfmM5Ixp5YOE9CZOD7j7TQzGImMcEfHS94rKE0VdqPYGH jGBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date :arc-authentication-results; bh=58hKYJgsntos0exYJuBY4mA42ROePyX2XZTMBrT3x8c=; b=d7kWnqG7mwDZSeObBt9ftoA3TZ4uwwAdXYYqtPgHrv14O/djaUoQfQLOxZHOx3TDfN xcYVOAGZzJfikU/Dbgv5DnVv8beWmBzqRe0mAqr1rlNkRYk8cFa6VXs9cHDS/9ftkHVA fV56TykKlukIKLewruKFMQE1yn2B2aE/uJp5LtNUWrwwiJr+Tr+EOxHKI0C28MJ75Zl3 wPd9xAuVgsPH2jK7/iz9/PwFl4LoSPRqOp43Gq9w62YUpu3fn9amTqrEnoxGXKp79BZE fIT3/1aipt8xhOLVduAt82t27r+h3vC7XYRE8wmoYpgLVAhzvcC0aBYSpq2gYUrQ7m96 dh3Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k13-v6si4581221pgg.346.2018.08.23.09.24.37; Thu, 23 Aug 2018 09:24:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732022AbeHWRNk (ORCPT + 99 others); Thu, 23 Aug 2018 13:13:40 -0400 Received: from gateway23.websitewelcome.com ([192.185.48.71]:36491 "EHLO gateway23.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731195AbeHWRNk (ORCPT ); Thu, 23 Aug 2018 13:13:40 -0400 Received: from cm17.websitewelcome.com (cm17.websitewelcome.com [100.42.49.20]) by gateway23.websitewelcome.com (Postfix) with ESMTP id 0BACD13C25 for ; Thu, 23 Aug 2018 08:43:54 -0500 (CDT) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id spt4fPdKWPvAdsptbfO5Rg; Thu, 23 Aug 2018 08:43:53 -0500 X-Authority-Reason: nr=8 Received: from [189.250.40.214] (port=58782 helo=embeddedor) by gator4166.hostgator.com with esmtpa (Exim 4.91) (envelope-from ) id 1fspt2-000Z5p-Rm; Thu, 23 Aug 2018 08:42:56 -0500 Date: Thu, 23 Aug 2018 08:42:55 -0500 From: "Gustavo A. R. Silva" To: John Johansen , James Morris , "Serge E. Hallyn" Cc: linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" Subject: [PATCH] apparmor: remove dead code Message-ID: <20180823134255.GA12128@embeddedor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator4166.hostgator.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - embeddedor.com X-BWhitelist: no X-Source-IP: 189.250.40.214 X-Source-L: No X-Exim-ID: 1fspt2-000Z5p-Rm X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (embeddedor) [189.250.40.214]:58782 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 5 X-Source-Cap: Z3V6aWRpbmU7Z3V6aWRpbmU7Z2F0b3I0MTY2Lmhvc3RnYXRvci5jb20= X-Local-Domain: yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Due to commit fb5841091f28 ("apparmor: remove no-op permission check in policy_unpack"), there is some leftover code. Coverity reports this issue as Structurally dead code. Fix this by removing such code. Addresses-Coverity-ID: 1472998 ("Structurally dead code") Fixes: fb5841091f28 ("apparmor: remove no-op permission check in policy_unpack") Signed-off-by: Gustavo A. R. Silva --- security/apparmor/policy_unpack.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/security/apparmor/policy_unpack.c b/security/apparmor/policy_unpack.c index 3647b58..21cb384 100644 --- a/security/apparmor/policy_unpack.c +++ b/security/apparmor/policy_unpack.c @@ -422,10 +422,6 @@ static struct aa_dfa *unpack_dfa(struct aa_ext *e) } return dfa; - -fail: - aa_put_dfa(dfa); - return ERR_PTR(-EPROTO); } /** -- 2.7.4