Skip to content
Snippets Groups Projects
Commit 8440f18a authored by Allen Martin's avatar Allen Martin Committed by Tom Rini
Browse files

serial: remove calls to serial_assign()


Remove calls to serial_assign() that are failing now that it returns a
proper error code.  This calls were not actually doing anything
because they passed the name of a stdio_dev when a serial_device name
is exptectd.

Signed-off-by: default avatarAllen Martin <amartin@nvidia.com>
Acked-by: default avatarJoe Hershberger <joe.hershberger@ni.com>
Acked-by: default avatarMarek Vasut <marex@denx.de>
Acked-by: default avatarSimon Glass <sjg@chromium.org>
Tested-by: default avatarSimon Glass <sjg@chromium.org>
Tested-by: default avatarStephen Warren <swarren@nvidia.com>
parent 5e8f9831
No related branches found
No related tags found
No related merge requests found
...@@ -238,9 +238,6 @@ int env_check_apply(const char *name, const char *oldval, ...@@ -238,9 +238,6 @@ int env_check_apply(const char *name, const char *oldval,
/* Try assigning specified device */ /* Try assigning specified device */
if (console_assign(console, newval) < 0) if (console_assign(console, newval) < 0)
return 1; return 1;
if (serial_assign(newval) < 0)
return 1;
#endif /* CONFIG_CONSOLE_MUX */ #endif /* CONFIG_CONSOLE_MUX */
} }
......
...@@ -135,16 +135,6 @@ int iomux_doenv(const int console, const char *arg) ...@@ -135,16 +135,6 @@ int iomux_doenv(const int console, const char *arg)
*/ */
if (console_assign(console, start[j]) < 0) if (console_assign(console, start[j]) < 0)
continue; continue;
/*
* This was taken from common/cmd_nvedit.c.
* This will never work because serial_assign() returns
* 1 upon error, not -1.
* This would almost always return an error anyway because
* serial_assign() expects the name of a serial device, like
* serial_smc, but the user generally only wants to set serial.
*/
if (serial_assign(start[j]) < 0)
continue;
cons_set[cs_idx++] = dev; cons_set[cs_idx++] = dev;
} }
free(console_args); free(console_args);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment