diff mbox

[1/3] PCI: tegra: Remove unused field

Message ID 1455029553-9460-1-git-send-email-thierry.reding@gmail.com (mailing list archive)
State New, archived
Delegated to: Bjorn Helgaas
Headers show

Commit Message

Thierry Reding Feb. 9, 2016, 2:52 p.m. UTC
From: Thierry Reding <treding@nvidia.com>

The num_ports field of the tegra_pcie structure is never used so it can
be safely removed.

Signed-off-by: Thierry Reding <treding@nvidia.com>
---
 drivers/pci/host/pci-tegra.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Bjorn Helgaas March 8, 2016, 9:44 p.m. UTC | #1
On Tue, Feb 09, 2016 at 03:52:31PM +0100, Thierry Reding wrote:
> From: Thierry Reding <treding@nvidia.com>
> 
> The num_ports field of the tegra_pcie structure is never used so it can
> be safely removed.
> 
> Signed-off-by: Thierry Reding <treding@nvidia.com>

Applied all three of these to pci/host-tegra for v4.6, thanks!

> ---
>  drivers/pci/host/pci-tegra.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/pci/host/pci-tegra.c b/drivers/pci/host/pci-tegra.c
> index 4cb8157a4678..82d7ad3a1c3a 100644
> --- a/drivers/pci/host/pci-tegra.c
> +++ b/drivers/pci/host/pci-tegra.c
> @@ -295,7 +295,6 @@ struct tegra_pcie {
>  	struct tegra_msi msi;
>  
>  	struct list_head ports;
> -	unsigned int num_ports;
>  	u32 xbar_config;
>  
>  	struct regulator_bulk_data *supplies;
> -- 
> 2.7.1
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-pci" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/pci/host/pci-tegra.c b/drivers/pci/host/pci-tegra.c
index 4cb8157a4678..82d7ad3a1c3a 100644
--- a/drivers/pci/host/pci-tegra.c
+++ b/drivers/pci/host/pci-tegra.c
@@ -295,7 +295,6 @@  struct tegra_pcie {
 	struct tegra_msi msi;
 
 	struct list_head ports;
-	unsigned int num_ports;
 	u32 xbar_config;
 
 	struct regulator_bulk_data *supplies;