]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/hameg-hmo/api.c
fx2lafw/dslogic: Imported FPGA config mode flags
[libsigrok.git] / src / hardware / hameg-hmo / api.c
index f8fc644cbb2c99b4667451a9998a87a1b85c3059..89042da7a4b5adda5c399ed78ca0046f8c04508c 100644 (file)
@@ -98,10 +98,8 @@ static struct sr_dev_inst *hmo_probe_serial_device(struct sr_scpi_dev_inst *scpi
        return sdi;
 
 fail:
-       if (hw_info)
-               sr_scpi_hw_info_free(hw_info);
-       if (sdi)
-               sr_dev_inst_free(sdi);
+       sr_scpi_hw_info_free(hw_info);
+       sr_dev_inst_free(sdi);
        g_free(devc);
 
        return NULL;