]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/sysclk-lwla/protocol.c
Some more g_try_*alloc() fixes.
[libsigrok.git] / src / hardware / sysclk-lwla / protocol.c
index 2fd4dffaa48bd46267d21d6dad3d57aae4b98bf6..7b8c4885e5608dfd6e7c311953d018229a0b210e 100644 (file)
@@ -959,11 +959,7 @@ SR_PRIV struct acquisition_state *lwla_alloc_acquisition_state(void)
 {
        struct acquisition_state *acq;
 
-       acq = g_try_new0(struct acquisition_state, 1);
-       if (!acq) {
-               sr_err("Acquisition state malloc failed.");
-               return NULL;
-       }
+       acq = g_malloc0(sizeof(struct acquisition_state));
 
        acq->xfer_in = libusb_alloc_transfer(0);
        if (!acq->xfer_in) {