]> sigrok.org Git - libsigrok.git/blobdiff - hardware/asix-sigma/asix-sigma.c
Return SR_ERR_MALLOC upon allocation errors.
[libsigrok.git] / hardware / asix-sigma / asix-sigma.c
index ed32e6a5ae93516f2350ffb32883c74031eaee67..7bf50104d094bcbc52d04f64c6798723b0b5ccf8 100644 (file)
@@ -440,7 +440,7 @@ static int hw_init(void)
 
        if (!(drvc = g_try_malloc0(sizeof(struct drv_context)))) {
                sr_err("asix-sigma: driver context malloc failed.");
-               return SR_ERR;
+               return SR_ERR_MALLOC;
        }
        adi->priv = drvc;