diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2020-05-08 14:42:46 +0300 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2020-06-22 13:54:58 +0200 |
commit | 5a6b5d53833c92f05d9892e96d9034ff05df551d (patch) | |
tree | ea4fceaca4123b18f652c30ad492eaeeb4e83a1f /drivers/memory | |
parent | 2de758997e69a5f971716c90a9cdc410133283d7 (diff) | |
download | linux-5a6b5d53833c92f05d9892e96d9034ff05df551d.tar.gz linux-5a6b5d53833c92f05d9892e96d9034ff05df551d.tar.bz2 linux-5a6b5d53833c92f05d9892e96d9034ff05df551d.zip |
memory: tegra: Delete some dead code
The debugfs_create_dir() function never returns NULL and anyway the
correct behavior is to ignore errors in this situation. The
debugfs_create_file() will become a no-op if "emc->debugfs.root" is an
error pointer.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/memory')
-rw-r--r-- | drivers/memory/tegra/tegra186-emc.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/memory/tegra/tegra186-emc.c b/drivers/memory/tegra/tegra186-emc.c index c900948881d5..f27dd39377e6 100644 --- a/drivers/memory/tegra/tegra186-emc.c +++ b/drivers/memory/tegra/tegra186-emc.c @@ -243,11 +243,6 @@ static int tegra186_emc_probe(struct platform_device *pdev) } emc->debugfs.root = debugfs_create_dir("emc", NULL); - if (!emc->debugfs.root) { - dev_err(&pdev->dev, "failed to create debugfs directory\n"); - return 0; - } - debugfs_create_file("available_rates", S_IRUGO, emc->debugfs.root, emc, &tegra186_emc_debug_available_rates_fops); debugfs_create_file("min_rate", S_IRUGO | S_IWUSR, emc->debugfs.root, |