From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Keepax Date: Wed, 20 May 2015 07:48:32 +0000 Subject: Re: [patch] ASoC: wm8741: check for error returns from wm8741_set_pdata() Message-Id: <20150520074832.GB31187@opensource.wolfsonmicro.com> List-Id: References: <20150520074035.GB18278@mwanda> In-Reply-To: <20150520074035.GB18278@mwanda> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Dan Carpenter Cc: Liam Girdwood , Sergej Sawazki , Mark Brown , Jaroslav Kysela , Takashi Iwai , Lars-Peter Clausen , patches@opensource.wolfsonmicro.com, alsa-devel@alsa-project.org, kernel-janitors@vger.kernel.org On Wed, May 20, 2015 at 10:40:35AM +0300, Dan Carpenter wrote: > Static checkers complain that "ret" is always zero so the conditions are > never true. > > The intention here was clearly to check for errors from > wm8741_set_pdata(). Although, since wm8741_set_pdata() never returns > errors, it doesn't affect runtime. > > Fixes: c354b54cfdf6 ('ASoC: wm8741: Add differential mono mode support') > Signed-off-by: Dan Carpenter > Acked-by: Charles Keepax Thanks, Charles