Memtest86+: fix serial_console_setup() end of string check
Coverity spotted an incorrect 'always true' if statement.
if (*end != '\0' || *end != ' ')
return; /* garbage at the end */
The || obviously should be &&.
This code would fail if the #bits was supplied in the baud string.
Signed-off-by: Ben Gardner <firstname.lastname@example.org>
Found-by: Coverity (75573)
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <email@example.com>
1 file changed