Open smooge opened 5 months ago
You're not missing anything. This is just really bad code from my side :grinning:
The whole mv6 program should really be torn out of this tool, since it only ever worked in combination with a patched kernel that was never publicized anywhere. Truth be told, I'm having a hard time caring about this project, since I've moved to use mdio-tools instead.
I started going over the code with cppcheck to learn more about cppcheck, and while I expect it is overly pedantic I came up with some questions
cppcheck complains about the logic in different ways which I am not sure is the right complaints:
Reading through the logic, I read it as
if dev is less than 0xf then print A else if dev == 0xf else if dev
and the rest of the if would get skipped because the first else says dev must exist and must be greater than 0xf. but this could be me missing another C should know item from being in python-land too long.If you have time could you explain what I am probably missing in the code?