diff options
author | Richard Zhao <richard.zhao@freescale.com> | 2012-09-18 04:38:30 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-09-18 22:53:15 -0400 |
commit | f3a50c95e275c2e553e2a6dcc646eef3daf98a3e (patch) | |
tree | 02c205f070762ee363ac856409a8f623c7c5ecb0 /sound | |
parent | f31e08e160d646952a5142e3f92f3fcdc645a09b (diff) |
ASoC: imx-audmux: remove null check of audmux_base in audmux_read_file
When audmux_read_file is called, it means the driver is already
initialised successfully, so we don't need to check audmux_base.
It also fix smatch warning:
sound/soc/fsl/imx-audmux.c:78 audmux_read_file() warn: possible memory leak of 'buf'
Signed-off-by: Richard Zhao <richard.zhao@freescale.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/fsl/imx-audmux.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sound/soc/fsl/imx-audmux.c b/sound/soc/fsl/imx-audmux.c index e7c800ebbd75..524ce6210cee 100644 --- a/sound/soc/fsl/imx-audmux.c +++ b/sound/soc/fsl/imx-audmux.c | |||
@@ -74,9 +74,6 @@ static ssize_t audmux_read_file(struct file *file, char __user *user_buf, | |||
74 | if (!buf) | 74 | if (!buf) |
75 | return -ENOMEM; | 75 | return -ENOMEM; |
76 | 76 | ||
77 | if (!audmux_base) | ||
78 | return -ENOSYS; | ||
79 | |||
80 | if (audmux_clk) | 77 | if (audmux_clk) |
81 | clk_prepare_enable(audmux_clk); | 78 | clk_prepare_enable(audmux_clk); |
82 | 79 | ||