]> sigrok.org Git - libsigrok.git/blobdiff - hardware/zeroplus-logic-cube/zeroplus.c
sr_driver_init(): Improve checks.
[libsigrok.git] / hardware / zeroplus-logic-cube / zeroplus.c
index 7a72e7c42e994f9ee895a70bb0877bf379eda6c6..f8cf81f8bc73c2d6ed4d677a403cb30c8340d185 100644 (file)
@@ -292,9 +292,10 @@ static int hw_init(struct sr_context *sr_ctx)
        struct drv_context *drvc;
 
        if (!(drvc = g_try_malloc0(sizeof(struct drv_context)))) {
-               sr_err("zeroplus: driver context malloc failed.");
+               sr_err("Driver context malloc failed.");
                return SR_ERR_MALLOC;
        }
+
        drvc->sr_ctx = sr_ctx;
        di->priv = drvc;