mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] mfd: cs42l43: Remove redundant NULL checks on SoundWire
@ 2026-07-08 10:09 Charles Keepax
  2026-07-16 14:46 ` (subset) " Lee Jones
  0 siblings, 1 reply; 2+ messages in thread
From: Charles Keepax @ 2026-07-08 10:09 UTC (permalink / raw)
  To: lee; +Cc: linux-sound, linux-kernel, patches, mfd

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>
---
 drivers/mfd/cs42l43.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/drivers/mfd/cs42l43.c b/drivers/mfd/cs42l43.c
index d2bbd2f18af7d..33479ddd539a6 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);
 
-- 
2.47.3


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: (subset) [PATCH] mfd: cs42l43: Remove redundant NULL checks on SoundWire
  2026-07-08 10:09 [PATCH] mfd: cs42l43: Remove redundant NULL checks on SoundWire Charles Keepax
@ 2026-07-16 14:46 ` Lee Jones
  0 siblings, 0 replies; 2+ messages in thread
From: Lee Jones @ 2026-07-16 14:46 UTC (permalink / raw)
  To: lee, Charles Keepax; +Cc: linux-sound, linux-kernel, patches, mfd

On Wed, 08 Jul 2026 11:09:14 +0100, Charles Keepax wrote:
> 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.

Applied, thanks!

[1/1] mfd: cs42l43: Remove redundant NULL checks on SoundWire
      commit: aa6e7336a9cae7a4c90c74e302fd38f7da93ffc3

--
Lee Jones [李琼斯]


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-07-16 14:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-08 10:09 [PATCH] mfd: cs42l43: Remove redundant NULL checks on SoundWire Charles Keepax
2026-07-16 14:46 ` (subset) " Lee Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox