From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 155F4C433EF for ; Fri, 18 Feb 2022 11:26:04 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7B8BD83B6E; Fri, 18 Feb 2022 12:26:02 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="deZG71Z2"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2459583B8D; Fri, 18 Feb 2022 12:26:00 +0100 (CET) Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 6F2C783B6E for ; Fri, 18 Feb 2022 12:25:57 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 01A59B825B2; Fri, 18 Feb 2022 11:25:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A6762C340EB; Fri, 18 Feb 2022 11:25:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645183555; bh=RhLzYXbKmNnvubZQPBy/ySQNfbswB2wgWFMMN9gEaaw=; h=From:To:Cc:Subject:Date:From; b=deZG71Z2DfuXb781WwWYFRPJWHWp6tm9mgTX/BWHGaaLVZ8EWM2ezy+sP9KnU+MQF mGdN0L3E9ZvvCUEiLlfklQyqKIJvqM0KlepizytCrPUU5irC9C4hU009QsfmIO+Jqa FRjOFevfXsdXvWw4nwSyVROvVjNt7B3pOcktvgNYpFenKlW5Ju3iUkWL3f2Syxr6Q4 jwmshmSkY4z235hZm6iM3kZlrgqHt7xTws2VpSo9MXi5pU3u7xdRoIXzqMhV+WxB9E O+mQ1YOXIZmM2V+02zZbS9Vavy5tXDLpgDjtDX8u3QVYLku7oq6D131MYRVSdCpUFU f+qUgGTruRwIw== Received: by pali.im (Postfix) id 978DD2BAE; Fri, 18 Feb 2022 12:25:53 +0100 (CET) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Stefan Roese , =?UTF-8?q?Marek=20Beh=C3=BAn?= Cc: u-boot@lists.denx.de Subject: [PATCH 1/2] pci: pci_mvebu: Remove unused SELECT and lane_mask Date: Fri, 18 Feb 2022 12:25:22 +0100 Message-Id: <20220218112523.10121-1-pali@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean Macro SELECT() is unused and struct mvebu_pcie field lane_mask is unused too. Remove them. Signed-off-by: Pali Rohár --- drivers/pci/pci_mvebu.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/pci/pci_mvebu.c b/drivers/pci/pci_mvebu.c index 5a0a59a8b9ec..16fe54fd366f 100644 --- a/drivers/pci/pci_mvebu.c +++ b/drivers/pci/pci_mvebu.c @@ -30,8 +30,6 @@ #include /* PCIe unit register offsets */ -#define SELECT(x, n) ((x >> n) & 1UL) - #define PCIE_DEV_ID_OFF 0x0000 #define PCIE_CMD_OFF 0x0004 #define PCIE_DEV_REV_OFF 0x0008 @@ -77,7 +75,6 @@ struct mvebu_pcie { u32 lane; bool is_x4; int devfn; - u32 lane_mask; int sec_busno; char name[16]; unsigned int mem_target; -- 2.20.1