command.c: Simplify usage of serial_no serial number string.

This commit is contained in:
Uwe Bonnes 2020-04-17 17:43:09 +02:00
parent 966ac4036d
commit f3790b90e5
1 changed files with 1 additions and 5 deletions

View File

@ -357,11 +357,7 @@ static bool cmd_target_power(target *t, int argc, const char **argv)
#ifdef PLATFORM_HAS_TRACESWO
static bool cmd_traceswo(target *t, int argc, const char **argv)
{
#if defined(STM32L0) || defined(STM32F3) || defined(STM32F4)
extern char serial_no[13];
#else
extern char serial_no[9];
#endif
extern char *serial_no;
(void)t;
#if TRACESWO_PROTOCOL == 2
uint32_t baudrate = SWO_DEFAULT_BAUD;