]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
i2c: robotfuzz-osif: drop redundant device reference
authorJohan Hovold <johan@kernel.org>
Thu, 5 Mar 2026 10:29:55 +0000 (11:29 +0100)
committerWolfram Sang <wsa+renesas@sang-engineering.com>
Mon, 9 Mar 2026 11:54:03 +0000 (12:54 +0100)
commit7bc4c8f3469284a499febb73dbca7183ff53c98c
treefe7402f76e7c7af1f0b79c47185d5123ff74df58
parent1f318b96cc84d7c2ab792fcc0bfd42a7ca890681
i2c: robotfuzz-osif: drop redundant device reference

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 reference to reduce cargo culting, make it
easier to spot drivers where an extra reference is needed, and reduce
the risk of memory leaks when drivers fail to release it.

Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
drivers/i2c/busses/i2c-robotfuzz-osif.c