mraa-uart.c: Remove impossible condition with a fprintf
Thanks to for the spot
@@ -156,10 +156,6 @@ main(int argc, const char** argv) {
} else {
for (i=1; i<argc; i++) {
if (!strcmp(argv[i], "dev")) {
- if (argc <= 1) {
- fprintf(stderr, "%s : dev needs uart device as argument\n", argv[0]);
- break;
- } else {
uart = uarttool_find(argv[i+1]);
if (uart == NULL) {
fprintf(stderr, "%s : cannot find uart %s\n", argv[0], argv[i+1]);
@@ -170,7 +166,6 @@ main(int argc, const char** argv) {
if (res != MRAA_SUCCESS) {
fprintf(stderr, "warning: problems accessing uart settings, attempting to continue\n");
}
- }
} else
/* Baudrate setting */
