summaryrefslogtreecommitdiff
path: root/drivers/mmc/host/s3cmci.h
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-06-12 10:25:31 +0200
committerUlf Hansson <ulf.hansson@linaro.org>2019-06-17 13:31:29 +0200
commit5928d8929d8cc3ba89f0af57ddeecaa004aa2340 (patch)
treed5a6a00536e058bb6a7e136e1454aab3ace72e02 /drivers/mmc/host/s3cmci.h
parentfcac152782e302a553c6d197d5fb38224b50023e (diff)
mmc: host: s3cmci: 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. Also, because there is no need to save the file dentries, remove them from the host-specific structure and just recursively delete the directory that the driver created, when shutting down. Cc: Ben Dooks <ben-linux@fluff.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host/s3cmci.h')
-rw-r--r--drivers/mmc/host/s3cmci.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/mmc/host/s3cmci.h b/drivers/mmc/host/s3cmci.h
index 30c2c0dd1bc8..62cae53b4271 100644
--- a/drivers/mmc/host/s3cmci.h
+++ b/drivers/mmc/host/s3cmci.h
@@ -70,8 +70,6 @@ struct s3cmci_host {
#ifdef CONFIG_DEBUG_FS
struct dentry *debug_root;
- struct dentry *debug_state;
- struct dentry *debug_regs;
#endif
#ifdef CONFIG_ARM_S3C24XX_CPUFREQ