]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/zeroplus-logic-cube/api.c
Some more g_try_*alloc() fixes.
[libsigrok.git] / src / hardware / zeroplus-logic-cube / api.c
index 48845c7a2c26b62f37f4bbc23d834d0420b8fc37..5de6f317099d1a63d6346d35d6f4dd65b5d657e3 100644 (file)
@@ -592,10 +592,7 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi,
                return SR_OK;
        }
 
-       if (!(buf = g_try_malloc(PACKET_SIZE))) {
-               sr_err("Packet buffer malloc failed.");
-               return SR_ERR_MALLOC;
-       }
+       buf = g_malloc(PACKET_SIZE);
 
        /* Check if the trigger is in the samples we are throwing away */
        trigger_now = now_address == trigger_address ||