Re: [PATCH] ASoC: tlv320adcx140: Fix warnings when using W=1

2020-05-27 Thread Mark Brown
On Tue, 26 May 2020 12:52:47 -0500, Dan Murphy wrote: > Fix the warnings when using the W=1 compiler flag. > > sound/soc/codecs/tlv320adcx140.c: In function ‘adcx140_reset’: > sound/soc/codecs/tlv320adcx140.c:570:6: warning: variable ‘ret’ set but > not used [-Wunused-but-set-variable] >

[PATCH] ASoC: tlv320adcx140: Fix warnings when using W=1

2020-05-26 Thread Dan Murphy
Fix the warnings when using the W=1 compiler flag. sound/soc/codecs/tlv320adcx140.c: In function ‘adcx140_reset’: sound/soc/codecs/tlv320adcx140.c:570:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] 570 | int ret = 0; | ^~~ This was set but only used in case