]> git.ipfire.org Git - thirdparty/linux.git/commit
ALSA: us122l: drop redundant interface references
authorJohan Hovold <johan@kernel.org>
Thu, 5 Mar 2026 11:18:10 +0000 (12:18 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 5 Mar 2026 13:00:55 +0000 (14:00 +0100)
commit3d543d9515928e4754a741c338dbcdf68ac47e39
tree85c27f2c8d54a749776416b595796723b444fbcd
parent7ae0d8f1abbbba6f98cac735145e1206927c67d9
ALSA: us122l: drop redundant interface references

Driver core holds a reference to the USB interface and its parent USB
device while the interface is bound to a driver and there is no need to
take additional references unless the structures are needed after
disconnect.

Similarly, USB core holds a reference to all interfaces in the active
configuration so there is no need for a driver to take a reference to a
sibling interface only to release it at disconnect either.

Drop the redundant references to reduce cargo culting, make it easier to
spot drivers where extra references are needed, and reduce the risk of
memory leaks when drivers fail to release them.

Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://patch.msgid.link/20260305111810.18688-1-johan@kernel.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/usx2y/us122l.c