summaryrefslogtreecommitdiffstats
path: root/sound/soc/ux500
diff options
context:
space:
mode:
authorzhong jiang <zhongjiang@huawei.com>2019-10-31 21:34:15 +0800
committerMark Brown <broonie@kernel.org>2019-11-04 13:22:25 +0000
commite0859710516c98b189879966b48ea1c77e0cd979 (patch)
tree2f6fe8242c40012bf319b785b78c92bd16e2c91f /sound/soc/ux500
parent683b85152e3606f4d3145b99e2df4d6eaeb758d0 (diff)
downloadlinux-e0859710516c98b189879966b48ea1c77e0cd979.tar.gz
linux-e0859710516c98b189879966b48ea1c77e0cd979.tar.bz2
linux-e0859710516c98b189879966b48ea1c77e0cd979.zip
ASoC: ux500: Remove redundant variable "status"
local variable "status" is not used. hence it is safe to remove and just return 0. Signed-off-by: zhong jiang <zhongjiang@huawei.com> Link: https://lore.kernel.org/r/1572528855-25990-1-git-send-email-zhongjiang@huawei.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/ux500')
-rw-r--r--sound/soc/ux500/ux500_msp_i2s.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/ux500/ux500_msp_i2s.c b/sound/soc/ux500/ux500_msp_i2s.c
index a90e0d7f0b73..394d8b2a4a16 100644
--- a/sound/soc/ux500/ux500_msp_i2s.c
+++ b/sound/soc/ux500/ux500_msp_i2s.c
@@ -533,7 +533,6 @@ static void disable_msp_tx(struct ux500_msp *msp)
static int disable_msp(struct ux500_msp *msp, unsigned int dir)
{
u32 reg_val_GCR;
- int status = 0;
unsigned int disable_tx, disable_rx;
reg_val_GCR = readl(msp->registers + MSP_GCR);
@@ -566,7 +565,7 @@ static int disable_msp(struct ux500_msp *msp, unsigned int dir)
else if (disable_rx)
disable_msp_rx(msp);
- return status;
+ return 0;
}
int ux500_msp_i2s_trigger(struct ux500_msp *msp, int cmd, int direction)