Memtest86+: clean up uninitialize and unused variable issues
Coverity spotted several cases where a variable might be used
uninitialized and a few where an assigned value was never used.
There were a few consecutive if() comparisons on the same variable that
should be if/else if chains.
There is also one instance where the code is clearly wrong, but without
the datasheet, it is unclear how to fix it. I marked that with a FIXME
Signed-off-by: Ben Gardner <firstname.lastname@example.org>
Found-by: Coverity (75575, 75588, 75589, 75590, 75591, 75592, 75594,
75595, 75596, 75597)
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <email@example.com>
1 file changed