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 303d435..2f5d41e 100644
--- a/src/hardware/gmc-mh-1x-2x/api.c
+++ b/src/hardware/gmc-mh-1x-2x/api.c
@@ -326,8 +326,7 @@ exit_err:
if (serial)
sr_serial_dev_inst_free(serial);
g_free(devc);
- if (sdi)
- sr_dev_inst_free(sdi);
+ sr_dev_inst_free(sdi);
return NULL;
}