From: Dan Carpenter Date: Wed, 20 May 2015 07:40:35 +0000 (+0300) Subject: ASoC: wm8741: check for error returns from wm8741_set_pdata() X-Git-Tag: omap-for-v4.3/legacy-v2-signed~142^2~38^2~1^5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d52d172398249f523b24cff9b84aee4e7b8e1b6;p=pandora-kernel.git ASoC: wm8741: check for error returns from wm8741_set_pdata() 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 Signed-off-by: Mark Brown --- Reading git-diff-tree failed