Fix error being reported twice

If 'stlink_v1_open_inner' returns NULL then 'stlink_v1_open' prints
to stderr thus there is no need for the former one to print it also.

This removes 'Error: could not open stlink device' being printed
twice.
pull/299/head
Jakub Tyszkowski 2015-03-07 18:29:38 +01:00
rodzic 873fb352fc
commit 527de54708
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -980,7 +980,7 @@ stlink_t* stlink_v1_open_inner(const int verbose) {
ugly_init(verbose);
stlink_t *sl = stlink_open(verbose);
if (sl == NULL) {
fputs("Error: could not open stlink device\n", stderr);
ELOG("Could not open stlink device\n");
return NULL;
}