]> git.ipfire.org Git - thirdparty/linux.git/commit
ASoC: codecs: wcd937x: drop bogus container_of() error handling
authorJohan Hovold <johan@kernel.org>
Fri, 19 Dec 2025 14:27:14 +0000 (15:27 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 22 Dec 2025 09:14:52 +0000 (09:14 +0000)
commit61a50d6f58b41e8a7e68d8fc8fc6bfbe30d790d8
tree2c8cc1e1d0b6dd438cfc8daf9e58fb3d93243fe8
parent54fa71f5f965fa3ec8846cef9d1154bcb2ba2850
ASoC: codecs: wcd937x: 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: 9be3ec196da4 ("ASoC: codecs: wcd937x: add wcd937x codec driver")
Cc: Prasad Kumpatla <prasad.kumpatla@oss.qualcomm.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Link: https://patch.msgid.link/20251219142715.19254-3-johan@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wcd937x.c