diff options
| author | Andrew Goodbody <[email protected]> | 2025-08-05 11:34:29 +0100 |
|---|---|---|
| committer | Jerome Forissier <[email protected]> | 2025-08-18 15:47:58 +0200 |
| commit | 5deb50f749659746233e08060b457c9cf9986f9c (patch) | |
| tree | 9f7e37ad3e6326d621bb495e79a3853ba98cc7b1 | |
| parent | 90c05f68fcab57d669233033d34e52b8d55d57dd (diff) | |
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 <[email protected]>
| -rw-r--r-- | drivers/net/ks8851_mll.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/net/ks8851_mll.c b/drivers/net/ks8851_mll.c index cc2e826257a..2c956154d09 100644 --- a/drivers/net/ks8851_mll.c +++ b/drivers/net/ks8851_mll.c @@ -347,11 +347,6 @@ static int ks8851_mll_detect_chip(struct ks_net *ks) debug("Read back KS8851 id 0x%x\n", val); - if ((val & 0xfff0) != CIDER_ID) { - printf(DRIVERNAME ": Unknown chip ID %04x\n", val); - return -1; - } - return 0; } |
