projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
683b851
)
ASoC: ux500: Remove redundant variable "status"
author
zhong jiang
<zhongjiang@huawei.com>
Thu, 31 Oct 2019 13:34:15 +0000
(21:34 +0800)
committer
Mark Brown
<broonie@kernel.org>
Mon, 4 Nov 2019 13:22:25 +0000
(13:22 +0000)
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>
sound/soc/ux500/ux500_msp_i2s.c
patch
|
blob
|
history
diff --git
a/sound/soc/ux500/ux500_msp_i2s.c
b/sound/soc/ux500/ux500_msp_i2s.c
index a90e0d7f0b73787cc0d700545f9623b702692450..394d8b2a4a1619cc8b8c43ff5aa67a11949ce92a 100644
(file)
--- 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)