projects
/
platform
/
kernel
/
linux-rpi3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4bf8d7
)
ASoC: adau1977: fix simple_return.cocci warnings
author
kbuild test robot
<fengguang.wu@intel.com>
Tue, 28 Apr 2015 04:20:32 +0000
(12:20 +0800)
committer
Mark Brown
<broonie@kernel.org>
Thu, 30 Apr 2015 20:24:17 +0000
(21:24 +0100)
sound/soc/codecs/adau1977.c:496:5-8: WARNING: end returns can be simpified
Simplify a trivial if-return sequence. Possibly combine with a
preceding function call.
Generated by: scripts/coccinelle/misc/simple_return.cocci
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/adau1977.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/adau1977.c
b/sound/soc/codecs/adau1977.c
index
c5b1b8e
..
3fb09c1
100644
(file)
--- a/
sound/soc/codecs/adau1977.c
+++ b/
sound/soc/codecs/adau1977.c
@@
-493,10
+493,7
@@
static int adau1977_set_bias_level(struct snd_soc_codec *codec,
break;
}
- if (ret)
- return ret;
-
- return 0;
+ return ret;
}
static int adau1977_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,