]> sigrok.org Git - libsigrok.git/blobdiff - src/scpi/scpi_vxi.c
Rename SR_CONF_OUTPUT_* to SR_CONF_*.
[libsigrok.git] / src / scpi / scpi_vxi.c
index e4efbf1d1d55cab2f55eb4cf91b638a66cc6ed4a..e7e48d62776e8974e94abccff8fd469729fd1b30 100644 (file)
@@ -22,7 +22,6 @@
 
 #include <rpc/rpc.h>
 #include <string.h>
-
 #include "vxi.h"
 #include "libsigrok.h"
 #include "libsigrok-internal.h"
@@ -66,7 +65,7 @@ static int scpi_vxi_open(void *priv)
        Create_LinkResp *link_resp;
 
        vxi->client = clnt_create(vxi->address, DEVICE_CORE, DEVICE_CORE_VERSION, "tcp");
-       if (vxi->client == NULL) {
+       if (!vxi->client) {
                sr_err("Client creation failed for %s", vxi->address);
                return SR_ERR;
        }