Skip to content

Commit

Permalink
ASoC: wcd938x: simplify return value
Browse files Browse the repository at this point in the history
cppcheck warning:

sound/soc/codecs/wcd938x.c:3701:9: warning: Identical condition and
return expression 'ret', return value is always 0
[identicalConditionAfterEarlyExit]

 return ret;
        ^
sound/soc/codecs/wcd938x.c:3691:6: note: If condition 'ret' is true,
        the function will return/exit
 if (ret)
     ^
sound/soc/codecs/wcd938x.c:3701:9: note: Returning identical expression 'ret'
 return ret;
        ^

Signed-off-by: Pierre-Louis Bossart <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
plbossart authored and broonie committed Aug 5, 2021
1 parent c18abd0 commit 8c62dbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/codecs/wcd938x.c
Original file line number Diff line number Diff line change
Expand Up @@ -3698,7 +3698,7 @@ static int wcd938x_probe(struct platform_device *pdev)
pm_runtime_enable(dev);
pm_runtime_idle(dev);

return ret;
return 0;
}

static int wcd938x_remove(struct platform_device *pdev)
Expand Down

0 comments on commit 8c62dbc

Please sign in to comment.