summaryrefslogtreecommitdiff
path: root/drivers/mfd
diff options
context:
space:
mode:
authorCharles Keepax <ckeepax@opensource.cirrus.com>2026-07-08 11:09:14 +0100
committerLee Jones <lee@kernel.org>2026-07-30 14:33:02 +0100
commit2e68a2188d5b5db86a56c5ba98c682d5505dc57b (patch)
treecbe64fe5a5e5bd3b08f00ef310488ee09b1f374c /drivers/mfd
parentd7a9410cd921d9fe1eb52a5c9f9ab10674545c2f (diff)
downloadlinux-next-2e68a2188d5b5db86a56c5ba98c682d5505dc57b.tar.gz
linux-next-2e68a2188d5b5db86a56c5ba98c682d5505dc57b.zip
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>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/cs42l43.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/mfd/cs42l43.c b/drivers/mfd/cs42l43.c
index d2bbd2f18af7..33479ddd539a 100644
--- a/drivers/mfd/cs42l43.c
+++ b/drivers/mfd/cs42l43.c
@@ -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);