diff options
author | Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> | 2021-03-12 12:22:29 -0600 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-03-18 13:50:39 +0000 |
commit | 8d41c1ab248fa6e6bfd4728a31eec6d3b9e0f924 (patch) | |
tree | 9a3cbcc91add1270de5520f8081793983f0f2b7b /sound/soc/codecs/da7219-aad.c | |
parent | 4d753b6642ee7304fc56f9fc463bb69ec641a037 (diff) |
ASoC: cx2070x: remove duplicate else branch
cppcheck warning:
sound/soc/codecs/cx2072x.c:1436:10: style:inconclusive: Found
duplicate branches for 'if' and 'else'. [duplicateBranch]
} else if (type & 0x4) {
^
sound/soc/codecs/cx2072x.c:1439:5: note: Found duplicate branches for
'if' and 'else'.
} else {
^
sound/soc/codecs/cx2072x.c:1436:10: note: Found duplicate branches for
'if' and 'else'.
} else if (type & 0x4) {
^
The last two branches do the same thing and can be collapsed together.
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/20210312182246.5153-7-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/da7219-aad.c')
0 files changed, 0 insertions, 0 deletions