From patchwork Fri Jun 4 04:56:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 1487571 X-Patchwork-Delegate: ykai007@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=LAVcKkfD; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Fx9TV6F3bz9sRK for ; Fri, 4 Jun 2021 14:56:30 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BC18082FFA; Fri, 4 Jun 2021 06:56:24 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com 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=gmail.com header.i=@gmail.com header.b="LAVcKkfD"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3D52A82FFF; Fri, 4 Jun 2021 06:56:23 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pg1-x533.google.com (mail-pg1-x533.google.com [IPv6:2607:f8b0:4864:20::533]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 6F0C982FF5 for ; Fri, 4 Jun 2021 06:56:18 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=linux.amoon@gmail.com Received: by mail-pg1-x533.google.com with SMTP id 27so6905260pgy.3 for ; Thu, 03 Jun 2021 21:56:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ruj8pqkEOk8urtDc76xbz8LEnPG2Js4q4XUW78CZV7g=; b=LAVcKkfDCIyzY2/Cx0FC90HdhqIq6b3IGAKues9a3K9pP7/rZSDt88ulMMP6sixUEk BZHDv+dgevNX51TFztB/muIFbxnOnpKklQ41g7Z1+k0FsPcZhNg2croTtD3Xn82dJskq XD8i4bX3nxonnbvukdramp7NTBcAkyUx+tUVRbGxapV7eAHLtTOWbsq4+ArQqbQg2Wab TIevWqy2fjUxJ/nTTBjtWnLBJkfPPnEl2X+p5ghWePJEJ1nPtZIGq0A6jOn4lmoaSRaX zVktPt7e5XclHMl3+n0e2p1pcZvQT6gclHQIEiwyky7xp6pv7hg7Vnd50eylgejxRlZO cKxA== 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:mime-version:content-transfer-encoding; bh=ruj8pqkEOk8urtDc76xbz8LEnPG2Js4q4XUW78CZV7g=; b=UkFCcJqQ34N5D3/IAoIe1kr3HcRhOOu3yWD3Bm1ees3QZJx8fyMK0nnWOQ4tNzMQvR P+sMLEel8IUhrkf9mkBaDOmk8TAoLsgsteQirzYr/ufwr2M73ILVsfqkfmZh1ubLD57W xOZuPosuxRvMnrN9HT09Q2nNkqLKaNmvTG1Na5WvsFYTp5Rbk+lGGBbkxpW0gio0RI3h cWB75mk8DQOR7CInv7rDwpCjNfMOXD03UXuJvge9aD5sggeDT5UtJiN/kEUe/ST+tBHq SEQvkmiR9BEvG3VBP7n+cPqqwQTf39HaQt7HzV3yzzmZXaCqqdb4c8zP/78pNVF/bJqG Eicw== X-Gm-Message-State: AOAM530CnrWU4P+DxIiQx9TeWNPcPYTyyB93w38acoUeyuXK7GDubIyi xCirJuaSkouE4zMiBXV31nJ3lag2O4M= X-Google-Smtp-Source: ABdhPJy8T90YK9IKX0zapSKPAW9wLmQIlnJHmJOFSKVqWngYrXcj5MwV2COj7kuIZh7S/ydfwD7Dvw== X-Received: by 2002:aa7:998f:0:b029:2ec:9844:a549 with SMTP id k15-20020aa7998f0000b02902ec9844a549mr15412pfh.65.1622782576512; Thu, 03 Jun 2021 21:56:16 -0700 (PDT) Received: from archl-on1e.. ([103.51.92.174]) by smtp.gmail.com with ESMTPSA id p13sm634294pfn.171.2021.06.03.21.56.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Jun 2021 21:56:16 -0700 (PDT) From: Anand Moon To: u-boot@lists.denx.de Cc: Neil Armstrong , Patrick Wildt , Kever Yang Subject: [PATCHv3 2/3] pci: pcie_dw_rockchip: Drop the unused variable warning Date: Fri, 4 Jun 2021 04:56:06 +0000 Message-Id: <20210604045607.1003-2-linux.amoon@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210604045607.1003-1-linux.amoon@gmail.com> References: <20210604045607.1003-1-linux.amoon@gmail.com> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.102.4 at phobos.denx.de X-Virus-Status: Clean Drop the unused variable warning below. drivers/pci/pcie_dw_rockchip.c:161:6: warning: unused variable 'val' [-Wunused-variable] 161 | u32 val; | ^~~ Cc: Patrick Wildt Cc: Neil Armstrong Cc: Kever Yang Reviewed-by: Neil Armstrong Signed-off-by: Anand Moon Reviewed-by: Patrick Wildt Reviewed-by: Kever Yang --- V1 V2: Added Neil review tags. --- drivers/pci/pcie_dw_rockchip.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/pci/pcie_dw_rockchip.c b/drivers/pci/pcie_dw_rockchip.c index 3ac2434b69..4e448c0a3d 100644 --- a/drivers/pci/pcie_dw_rockchip.c +++ b/drivers/pci/pcie_dw_rockchip.c @@ -158,8 +158,6 @@ static inline void rk_pcie_writel_apb(struct rk_pcie *rk_pcie, u32 reg, */ static void rk_pcie_configure(struct rk_pcie *pci, u32 cap_speed) { - u32 val; - dw_pcie_dbi_write_enable(&pci->dw, true); clrsetbits_le32(pci->dw.dbi_base + PCIE_LINK_CAPABILITY,