net: ks8851_mll: Remove unreachable code
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Tue, 5 Aug 2025 10:34:29 +0000 (11:34 +0100)
committerJerome Forissier <jerome.forissier@linaro.org>
Mon, 18 Aug 2025 13:47:58 +0000 (15:47 +0200)
commit5deb50f749659746233e08060b457c9cf9986f9c
tree9f7e37ad3e6326d621bb495e79a3853ba98cc7b1
parent90c05f68fcab57d669233033d34e52b8d55d57dd
net: ks8851_mll: Remove unreachable code

In ks8851_mll_detect_chip the if..else code detects the case of (val &
0xfff0) != CIDER_ID and returns if found. So testing for this again will
always fail and the code is unreachable. Just remove the test and code
block.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
drivers/net/ks8851_mll.c