aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/controller/dwc
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-08-18 15:37:39 +0200
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>2020-09-07 10:47:45 +0100
commitd27b1cdc10e7b2d8611b83e8db92eb7dc13d0cd5 (patch)
tree05eaf304f0fe6c4574cce8d49e20cad77a91db9a /drivers/pci/controller/dwc
parentLinux 5.9-rc1 (diff)
downloadlinux-d27b1cdc10e7b2d8611b83e8db92eb7dc13d0cd5.tar.gz
linux-d27b1cdc10e7b2d8611b83e8db92eb7dc13d0cd5.zip
PCI: tegra: No need to check return value of debugfs_create() functions
When calling debugfs functions, there is no need to ever check the return value. The function can work or not, but the code logic should never do something different based on this. Link: https://lore.kernel.org/r/20200818133739.463193-1-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Acked-by: Thierry Reding <treding@nvidia.com> Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Cc: Rob Herring <robh@kernel.org> Cc: Bjorn Helgaas <bhelgaas@google.com> Cc: Thierry Reding <thierry.reding@gmail.com> Cc: Jonathan Hunter <jonathanh@nvidia.com> Cc: Vidya Sagar <vidyas@nvidia.com> Cc: Andrew Murray <amurray@thegoodpenguin.co.uk> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: linux-pci@vger.kernel.org Cc: linux-tegra@vger.kernel.org Cc: linux-kernel@vger.kernel.org
Diffstat (limited to 'drivers/pci/controller/dwc')
-rw-r--r--drivers/pci/controller/dwc/pcie-tegra194.c20
1 files changed, 5 insertions, 15 deletions
diff --git a/drivers/pci/controller/dwc/pcie-tegra194.c b/drivers/pci/controller/dwc/pcie-tegra194.c
index 70498689d0c0..87f8dd63df0a 100644
--- a/drivers/pci/controller/dwc/pcie-tegra194.c
+++ b/drivers/pci/controller/dwc/pcie-tegra194.c
@@ -699,23 +699,16 @@ static void init_host_aspm(struct tegra_pcie_dw *pcie)
dw_pcie_writel_dbi(pci, PORT_LOGIC_ACK_F_ASPM_CTRL, val);
}
-static int init_debugfs(struct tegra_pcie_dw *pcie)
+static void init_debugfs(struct tegra_pcie_dw *pcie)
{
- struct dentry *d;
-
- d = debugfs_create_devm_seqfile(pcie->dev, "aspm_state_cnt",
- pcie->debugfs, aspm_state_cnt);
- if (IS_ERR_OR_NULL(d))
- dev_err(pcie->dev,
- "Failed to create debugfs file \"aspm_state_cnt\"\n");
-
- return 0;
+ debugfs_create_devm_seqfile(pcie->dev, "aspm_state_cnt", pcie->debugfs,
+ aspm_state_cnt);
}
#else
static inline void disable_aspm_l12(struct tegra_pcie_dw *pcie) { return; }
static inline void disable_aspm_l11(struct tegra_pcie_dw *pcie) { return; }
static inline void init_host_aspm(struct tegra_pcie_dw *pcie) { return; }
-static inline int init_debugfs(struct tegra_pcie_dw *pcie) { return 0; }
+static inline void init_debugfs(struct tegra_pcie_dw *pcie) { return; }
#endif
static void tegra_pcie_enable_system_interrupts(struct pcie_port *pp)
@@ -1641,10 +1634,7 @@ static int tegra_pcie_config_rp(struct tegra_pcie_dw *pcie)
}
pcie->debugfs = debugfs_create_dir(name, NULL);
- if (!pcie->debugfs)
- dev_err(dev, "Failed to create debugfs\n");
- else
- init_debugfs(pcie);
+ init_debugfs(pcie);
return ret;
manabhan Rajanbabu1-1/+1 2019-12-20net: hns3: only print misc interrupt status when handling failsHuazhong Tan1-3/+6 2019-12-20net: hns3: add a log for getting chain failure in hns3_nic_uninit_vector_data()Huazhong Tan1-1/+6 2019-12-20net: hns3: add some VF VLAN information for command "ip link show"Huazhong Tan1-0/+3 2019-12-20net: hns3: implement ndo_features_check ops for hns3 driverYunsheng Lin1-0/+32 2019-12-20net: hns3: get FD rules location before dump in debugfsYufeng Mo1-7/+67 2019-12-20net: hns3: optimization for CMDQ uninitializationHuazhong Tan2-15/+3 2019-12-20net: hns3: remove useless mutex vport_cfg_mutex in the struct hclge_devHuazhong Tan3-13/+0 2019-12-20net: hns3: check FE bit before calling hns3_add_frag()Yunsheng Lin1-33/+13 2019-12-20llc2: Fix return statement of llc_stat_ev_rx_null_dsap_xid_c (and _test_c)Chan Shu Tak, Alex1-2/+2 2019-12-20tipc: make legacy address flag readable over netlinkJohn Rutherford4-0/+65 2019-12-20net: hisilicon: Fix a BUG trigered by wrong bytes_complJiangfeng Xiao1-1/+1 2019-12-20vsock_test: add SOCK_STREAM MSG_PEEK testStefano Garzarella1-0/+34 2019-12-20testing/vsock: print list of options and descriptionStefano Garzarella2-2/+24 2019-12-20testing/vsock: add parameters to list and skip testsStefano Garzarella6-20/+116 2019-12-20vsock_test: wait for the remote to close the connectionStefano Garzarella3-4/+48 2019-12-20VSOCK: add AF_VSOCK test casesStefan Hajnoczi4-2/+317 2019-12-20VSOCK: add send_byte()/recv_byte() test utilitiesStefan Hajnoczi2-0/+105 2019-12-20VSOCK: add full barrier between test casesStefan Hajnoczi1-2/+16 2019-12-20VSOCK: extract connect/accept functions from vsock_diag_test.cStefan Hajnoczi3-76/+119 2019-12-20VSOCK: extract utility functions from vsock_diag_test.cStefan Hajnoczi4-71/+125 2019-12-20VSOCK: add SPDX identifiers to vsock testsStefan Hajnoczi2-0/+2 2019-12-20VSOCK: fix header include in vsock_diag_testStefan Hajnoczi3-5/+4 2019-12-20net: dsa: ksz: use common define for tag lenMichael Grzeschik1-5/+3 2019-12-20s390/qeth: don't return -ENOTSUPP to userspaceJulian Wiedmann1-1/+1 2019-12-20s390/qeth: fix promiscuous mode after resetJulian Wiedmann3-1/+4 2019-12-20s390/qeth: handle error due to unsupported transport modeJulian Wiedmann2-7/+12 2019-12-20net: dsa: add support for Atheros AR9331 built-in switchOleksij Rempel5-0/+869 2019-12-20net: dsa: add support for Atheros AR9331 TAG formatOleksij Rempel4-0/+105 2019-12-20MIPS: ath79: ar9331: add ar9331-switch nodeOleksij Rempel2-1/+131