aboutsummaryrefslogtreecommitdiff
path: root/src/hardware/lecroy-xstream/api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hardware/lecroy-xstream/api.c')
-rw-r--r--src/hardware/lecroy-xstream/api.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/hardware/lecroy-xstream/api.c b/src/hardware/lecroy-xstream/api.c
index 1727ab6..9dfb0b6 100644
--- a/src/hardware/lecroy-xstream/api.c
+++ b/src/hardware/lecroy-xstream/api.c
@@ -104,8 +104,7 @@ static struct sr_dev_inst *probe_serial_device(struct sr_scpi_dev_inst *scpi)
fail:
sr_scpi_hw_info_free(hw_info);
- if (sdi)
- sr_dev_inst_free(sdi);
+ sr_dev_inst_free(sdi);
g_free(devc);
return NULL;