mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 22:14:03 +02:00
mfd: cs42l43: Remove redundant NULL checks on SoundWire
The SoundWire core helpers now check for NULL on the SoundWire peripheral so there is no need to do so locally, remove the duplicate checks. Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com> Link: https://patch.msgid.link/20260708100914.1298080-1-ckeepax@opensource.cirrus.com Signed-off-by: Lee Jones <lee@kernel.org>
This commit is contained in:
parent
d7a9410cd9
commit
2e68a2188d
|
|
@ -588,12 +588,9 @@ static int cs42l43_wait_for_attach(struct cs42l43 *cs42l43)
|
|||
{
|
||||
int ret;
|
||||
|
||||
if (cs42l43->sdw) {
|
||||
ret = sdw_slave_wait_for_init(cs42l43->sdw,
|
||||
CS42L43_SDW_ATTACH_TIMEOUT_MS);
|
||||
if (ret)
|
||||
return ret;
|
||||
}
|
||||
ret = sdw_slave_wait_for_init(cs42l43->sdw, CS42L43_SDW_ATTACH_TIMEOUT_MS);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
regcache_cache_only(cs42l43->regmap, false);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user