ols: if no serial port specified, this driver is not used.

This commit is contained in:
Bert Vermeulen 2012-11-16 15:26:17 +01:00
parent 766456be1c
commit 90165efe55
1 changed files with 1 additions and 3 deletions

View File

@ -409,10 +409,8 @@ static GSList *hw_scan(GSList *options)
break; break;
} }
} }
if (!conn) { if (!conn)
sr_err("ols: No serial port specified.");
return NULL; return NULL;
}
if (serialcomm == NULL) if (serialcomm == NULL)
serialcomm = SERIALCOMM; serialcomm = SERIALCOMM;