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.

Change-Id: I58fe87c1ccb767df73ff202df5b1512894307637
Signed-off-by: Ben Gardner <>
Found-by: Coverity (75573)
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <>
1 file changed