diff options
| author | Richard Fitzgerald <rf@opensource.cirrus.com> | 2026-05-28 15:46:32 +0100 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-05-28 16:16:34 +0100 |
| commit | 3b28b14b794cb95427028d55122eeff0787315ca (patch) | |
| tree | 4dcae678f628b561334df85c63c8da6349618237 /include/linux | |
| parent | ec4489c43efe434a132f27ff9298345de1cfacd8 (diff) | |
ASoC: cs-amp-lib: Simplify overcomplicated error return
In cs_amp_devm_get_dell_ssidex() remove an unnecessary special case check
on -ENOENT that just returned -ENOENT. The other branch of the if()
statement returned the error, which would of course return -ENOENT if the
error was -ENOENT and so do exactly the same as the first branch.
The whole if statement is identical to just returning the original pointer
if it is an error value.
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://patch.msgid.link/20260528144632.130197-1-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
