]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
w1: matrox: Remove some deadcode in matrox_w1_remove()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Thu, 21 Aug 2025 10:02:21 +0000 (12:02 +0200)
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sun, 31 Aug 2025 12:14:07 +0000 (14:14 +0200)
commit25fb0ea986dc10e05f3f4b43cabde4d1853a1fd7
tree7eea0de16632dada437f18589e84f966e0796cba
parent411053cb6657a3cf8db50a2d004a112070ca14b2
w1: matrox: Remove some deadcode in matrox_w1_remove()

The .remove function can only be called if the .probe() succeeds. So there
is no need to keep track of a successful probe in 'found'.

Simplify code accordingly.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/458641ad2d7a7adf30a03e70038304f0e6a81ff4.1755770484.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
drivers/w1/masters/matrox_w1.c