From patchwork Fri Nov 17 16:09:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 119175 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp703135qgn; Fri, 17 Nov 2017 08:09:33 -0800 (PST) X-Google-Smtp-Source: AGs4zMabmlP70/10EKDBtyqhZhra9VmCN4a03c7uiD9SGH2ZI4V16LNTbj1akidf+Y0utPwu38oZ X-Received: by 10.84.163.75 with SMTP id n11mr5669372plg.287.1510934972963; Fri, 17 Nov 2017 08:09:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510934972; cv=none; d=google.com; s=arc-20160816; b=uQmzrrOvVr2RL0KypqUHFMaFfqnJFGF4PQegtfP0jQBUCZiSv3twp7tWsG+BdcmEGM FLD3+a8BFQtDDqyDRbnBq2j5EQstIYAdCmQTreVv3ygynBEFnL7I5ZQWbx6/OXXZUNck c+p7jm5RYV3dim4+6yso/GvDe2xCFU4qHAHP699o+ErB96doE64BYW9SOrhACWuqSEpk g33q7gEz6Km0y6X9ABFm/NG+dX5aLPz/LAzOI4yVmOxKMrrWVW+26N9Q/fHVS+jALAKG ls5pNtGivwtQd61gpdAXto1cSL04VnVIOFeSk60qrf8zr46/rJq/ufIdDBvzEzwdxgy2 y4dA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=L3iEqoy+/Ir+lvGptyfwP2Jf0NH1JGqSwc8qBV8jt80=; b=OyaVhIchfpMlN2iA00eWfCVu1Aj1Jf4CC2G44x2eMbLUcSw5t/a86rExlExpGV3Ve2 RcDR+VirBr78qZa6Xgxi4WWzXpyEAOwkp1cr+/Jv+DJmcNyHDgwGIX4OdC5vR4yXpWML JzpQzLpeD8WgnOdRRVm6RhN7i6Go3uvSQUIOvsMTlvs6qPWheNLeHSjEGImOlBTNWGjV Kf/5FNJcHEZxBZtUafz+R2ihXtBnyFlnKzqqVaPtBLK6Qm3G1G7Ykq43upNmZuqE8aWC YUex+WtVxZZb1S0P6OyHcgT3gCLGDbmZOsl4zYJoiEe49WC/zvH1FlESqW06CTZkQaO/ v6hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=c3fU9vrW; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id k91si2990896pld.242.2017.11.17.08.09.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Nov 2017 08:09:32 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=c3fU9vrW; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 3BCE821B00DE6; Fri, 17 Nov 2017 08:05:20 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:400c:c0c::244; helo=mail-wr0-x244.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wr0-x244.google.com (mail-wr0-x244.google.com [IPv6:2a00:1450:400c:c0c::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id D50682035BB1D for ; Fri, 17 Nov 2017 08:05:17 -0800 (PST) Received: by mail-wr0-x244.google.com with SMTP id w95so2548990wrc.2 for ; Fri, 17 Nov 2017 08:09:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=vRyNhqyzKprfA8ce0aaw0Mtf7qTWwAZkGmqp6Lxp4ms=; b=c3fU9vrWp6hrxSQ3Am8pzRvT45WlkGAVzqE06igVPhTuka9FgNCep7fYT1SzgeEkz0 kvzQ6oLw2o0A9CDMI/WKoSU9W+tOFK4ab7pqezAWMGJX9fCu62rcMqWI5QFS0PbX/13h Z0neJ+rc51Xe/0BYHRKDX72Y+fcQnOBkb7RWo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=vRyNhqyzKprfA8ce0aaw0Mtf7qTWwAZkGmqp6Lxp4ms=; b=Xsb1sBZNsBy2WMMIkBvY6gyXPvjhNZUqQY3Y1aSDAqcYd3yKF/A0myf3Eklwp0EYG7 6IkrgXNX9YTJbMUTUeaYVDxGQyclSe/r8dcdc3TNPHZ8rD1cCzsA9xOs2w8pOWVGVvth +9UlfpgmxgxUVOYJ+IJ/Kj2qm1c54dhdv6iKR1za0SnL9vNk01TenhIWGpM1jtdvahvw 5OcNVfUdoh/PNIIUSg2ue7hHXoKLd6T8BPBBs1cXehWBYu7I+KObLFmnT5prg0IvK0EG NFcQahF2dknrbQ+ZmpSqFwnBHG8CGqTYL/EKUEbjFWx83Y74NZB5M/3R+jcj7GgHso1P KbXA== X-Gm-Message-State: AJaThX7caqE1Z0EfYyArlyCs4YY28Gs2TjtHtT28uKVu2raATAIqYfT6 GyjSWNoZxa0C6vKmyf+e65NTfL39ZmA= X-Received: by 10.223.165.67 with SMTP id j3mr5147961wrb.181.1510934967092; Fri, 17 Nov 2017 08:09:27 -0800 (PST) Received: from localhost.localdomain ([160.167.170.128]) by smtp.gmail.com with ESMTPSA id p42sm5575959wrb.28.2017.11.17.08.09.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Nov 2017 08:09:26 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org, lersek@redhat.com Date: Fri, 17 Nov 2017 16:09:01 +0000 Message-Id: <20171117160913.17292-4-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171117160913.17292-1-ard.biesheuvel@linaro.org> References: <20171117160913.17292-1-ard.biesheuvel@linaro.org> Subject: [edk2] [PATCH 03/15] ArmVirtPkg/PrePi: remove unused GetPlatformPpi() function X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: leif.lindholm@linaro.org, Ard Biesheuvel MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Remove GetPlatformPpi() from PrePi: it is not used anywhere. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- ArmVirtPkg/PrePi/PrePi.c | 24 -------------------- 1 file changed, 24 deletions(-) -- 2.11.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Reviewed-by: Laszlo Ersek diff --git a/ArmVirtPkg/PrePi/PrePi.c b/ArmVirtPkg/PrePi/PrePi.c index 3679087aec4d..c4fa979c43ef 100755 --- a/ArmVirtPkg/PrePi/PrePi.c +++ b/ArmVirtPkg/PrePi/PrePi.c @@ -35,30 +35,6 @@ ProcessLibraryConstructorList ( VOID ); -EFI_STATUS -GetPlatformPpi ( - IN EFI_GUID *PpiGuid, - OUT VOID **Ppi - ) -{ - UINTN PpiListSize; - UINTN PpiListCount; - EFI_PEI_PPI_DESCRIPTOR *PpiList; - UINTN Index; - - PpiListSize = 0; - ArmPlatformGetPlatformPpiList (&PpiListSize, &PpiList); - PpiListCount = PpiListSize / sizeof(EFI_PEI_PPI_DESCRIPTOR); - for (Index = 0; Index < PpiListCount; Index++, PpiList++) { - if (CompareGuid (PpiList->Guid, PpiGuid) == TRUE) { - *Ppi = PpiList->Ppi; - return EFI_SUCCESS; - } - } - - return EFI_NOT_FOUND; -} - VOID PrePiMain ( IN UINTN UefiMemoryBase,