From f7d2086675f3479bbdedade6cc9b176a78352b1d Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Sun, 18 Sep 2016 08:17:25 +0200 Subject: [PATCH] Don't overwrite status This removes whats probably a merge error, that overwrites the return status. Signed-off-by: Anton Lundin Signed-off-by: Dirk Hohndel --- src/hw_ostc3.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/hw_ostc3.c b/src/hw_ostc3.c index 0fee734..81c54f0 100644 --- a/src/hw_ostc3.c +++ b/src/hw_ostc3.c @@ -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; }