]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: imon: drop redundant device references
authorJohan Hovold <johan@kernel.org>
Thu, 5 Mar 2026 10:39:16 +0000 (11:39 +0100)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Tue, 17 Mar 2026 13:43:57 +0000 (14:43 +0100)
commit88796a18f20f0a9d9ffccecb3be3d37dfa3391d6
tree5522837153d507c1afb7e027683609c30dbc3cd8
parent50acaad3d202c064779db8dc3d010007347f59c7
media: imon: drop redundant device 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.

Drop the redundant device 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>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/rc/imon.c