aboutsummaryrefslogtreecommitdiff
path: root/src/hardware/gmc-mh-1x-2x/api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hardware/gmc-mh-1x-2x/api.c')
-rw-r--r--src/hardware/gmc-mh-1x-2x/api.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/hardware/gmc-mh-1x-2x/api.c b/src/hardware/gmc-mh-1x-2x/api.c
index 2f5d41e..801429c 100644
--- a/src/hardware/gmc-mh-1x-2x/api.c
+++ b/src/hardware/gmc-mh-1x-2x/api.c
@@ -323,8 +323,7 @@ static GSList *scan_2x_bd232(struct sr_dev_driver *di, GSList *options)
exit_err:
sr_info("scan_2x_bd232(): Error!");
- if (serial)
- sr_serial_dev_inst_free(serial);
+ sr_serial_dev_inst_free(serial);
g_free(devc);
sr_dev_inst_free(sdi);