Don't overwrite status
This removes whats probably a merge error, that overwrites the return status. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
4c5b51f851
commit
f7d2086675
@ -356,7 +356,6 @@ hw_ostc3_device_open (dc_device_t **out, dc_context_t *context, const char *name
|
||||
status = dc_serial_set_timeout (device->port, 3000);
|
||||
if (status != DC_STATUS_SUCCESS) {
|
||||
ERROR (context, "Failed to set the timeout.");
|
||||
status = DC_STATUS_IO;
|
||||
goto error_close;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user