aboutsummaryrefslogtreecommitdiff
path: root/src/hardware/hameg-hmo/api.c
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2017-03-08 19:18:17 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2017-03-10 11:38:12 +0100
commit4bf93988023b2428129c8145ef9ea7121400f195 (patch)
treea12611b68a71302de00e17882a1020addc4201de /src/hardware/hameg-hmo/api.c
parent8662130615d7a59883c303914f94377032101cb9 (diff)
sr_dev_inst_free(): Allow NULL as argument.
Diffstat (limited to 'src/hardware/hameg-hmo/api.c')
-rw-r--r--src/hardware/hameg-hmo/api.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/hardware/hameg-hmo/api.c b/src/hardware/hameg-hmo/api.c
index f8fc644..7bd0b8b 100644
--- a/src/hardware/hameg-hmo/api.c
+++ b/src/hardware/hameg-hmo/api.c
@@ -100,8 +100,7 @@ static struct sr_dev_inst *hmo_probe_serial_device(struct sr_scpi_dev_inst *scpi
fail:
if (hw_info)
sr_scpi_hw_info_free(hw_info);
- if (sdi)
- sr_dev_inst_free(sdi);
+ sr_dev_inst_free(sdi);
g_free(devc);
return NULL;