diff options
author | Pierre-Louis Bossart <[email protected]> | 2021-10-25 13:59:33 -0500 |
---|---|---|
committer | Mark Brown <[email protected]> | 2021-10-27 11:31:16 +0100 |
commit | f913582190ddfe2380ecf8ee87b4ff2c8dcb5d48 (patch) | |
tree | fdc3e529eb0a73db7cc465a257c717e6b6e2286a /scripts/gdb/linux/utils.py | |
parent | 439c06f341aa1f09ad7def774998db1076946c98 (diff) |
ASoC: rockchip: i2s_tdm: improve return value handling
cppcheck reports the following warning:
sound/soc/rockchip/rockchip_i2s_tdm.c:599:9: warning: Identical
condition and return expression 'ret', return value is always 0
[identicalConditionAfterEarlyExit]
return ret;
^
sound/soc/rockchip/rockchip_i2s_tdm.c:594:6: note: If condition 'ret'
is true, the function will return/exit
if (ret)
^
sound/soc/rockchip/rockchip_i2s_tdm.c:599:9: note: Returning identical
expression 'ret'
return ret;
^
While the code is not wrong, it's clearer to return 0 directly.
Signed-off-by: Pierre-Louis Bossart <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions