]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: host: s3cmci: no need to check return value of debugfs_create functions
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 12 Jun 2019 08:25:31 +0000 (10:25 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 17 Jun 2019 11:31:29 +0000 (13:31 +0200)
commit770399359415f28d5b045b80d78ced0250eb52e5
treed5a6a00536e058bb6a7e136e1454aab3ace72e02
parent07e54e5a7318efadd652f866a726118d0e5993e6
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>
drivers/mmc/host/s3cmci.c
drivers/mmc/host/s3cmci.h