]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: codecs: pm4125: drop bogus container_of() error handling
authorJohan Hovold <johan@kernel.org>
Fri, 19 Dec 2025 14:27:13 +0000 (15:27 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 22 Dec 2025 09:14:51 +0000 (09:14 +0000)
commit54fa71f5f965fa3ec8846cef9d1154bcb2ba2850
treeba5b52ee1cf635232d5a1447e59e783cedb421cb
parent56d953a8d0da5e53c2594edde23465ec49385b1c
ASoC: codecs: pm4125: drop bogus container_of() error handling

The dev_to_sdw_dev() helper uses container_of() to return the containing
soundwire device structure of its pointer argument and will never return
NULL.

Fixes: 8ad529484937 ("ASoC: codecs: add new pm4125 audio codec driver")
Cc: Alexey Klimov <alexey.klimov@linaro.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Acked-by: Alexey Klimov <alexey.klimov@linaro.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Link: https://patch.msgid.link/20251219142715.19254-2-johan@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/pm4125.c