OSDN Git Service

ASoC: wcd9335: remove redundant use of ret variable
authorSaiyam Doshi <saiyamdoshi.in@gmail.com>
Mon, 9 Sep 2019 17:45:41 +0000 (23:15 +0530)
committerMark Brown <broonie@kernel.org>
Wed, 11 Sep 2019 10:16:05 +0000 (11:16 +0100)
commitd1c9e44a858d706ce0b496f559b25732e6697b0c
tree0501c6d812db8251940d85e882f74d9b846cab8b
parent6fa5963c37a2e3335eba0b7455e35a01318ebc15
ASoC: wcd9335: remove redundant use of ret variable

All these functions declares and initializes variable ret with
'0' and without modifying 'ret' variable, it is returned.

This patch removes this redundancy and returns '0' directly.

Signed-off-by: Saiyam Doshi <saiyamdoshi.in@gmail.com>
Link: https://lore.kernel.org/r/20190909174541.GA22718@SD
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wcd9335.c