diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-06-14 11:47:55 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-06-14 16:37:48 +0100 |
commit | 227ab8baa15bdd7a48acfb7b61c52a7a5eb87e72 (patch) | |
tree | c6667b129db854240efbe1f2872e4325441273ff /sound/soc/fsl/imx-audmux.c | |
parent | 7f807f280964e31fb32fe6aaa263cfa2488236d8 (diff) | |
download | linux-227ab8baa15bdd7a48acfb7b61c52a7a5eb87e72.tar.gz linux-227ab8baa15bdd7a48acfb7b61c52a7a5eb87e72.tar.bz2 linux-227ab8baa15bdd7a48acfb7b61c52a7a5eb87e72.zip |
ASoC: fsl: 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.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/fsl/imx-audmux.c')
-rw-r--r-- | sound/soc/fsl/imx-audmux.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/sound/soc/fsl/imx-audmux.c b/sound/soc/fsl/imx-audmux.c index 04e59e66711d..b2351cd33b0f 100644 --- a/sound/soc/fsl/imx-audmux.c +++ b/sound/soc/fsl/imx-audmux.c @@ -141,17 +141,11 @@ static void audmux_debugfs_init(void) char buf[20]; audmux_debugfs_root = debugfs_create_dir("audmux", NULL); - if (!audmux_debugfs_root) { - pr_warning("Failed to create AUDMUX debugfs root\n"); - return; - } for (i = 0; i < MX31_AUDMUX_PORT7_SSI_PINS_7 + 1; i++) { snprintf(buf, sizeof(buf), "ssi%lu", i); - if (!debugfs_create_file(buf, 0444, audmux_debugfs_root, - (void *)i, &audmux_debugfs_fops)) - pr_warning("Failed to create AUDMUX port %lu debugfs file\n", - i); + debugfs_create_file(buf, 0444, audmux_debugfs_root, + (void *)i, &audmux_debugfs_fops); } } |