From: Uwe Hermann Date: Fri, 22 Apr 2016 15:55:44 +0000 (+0200) Subject: Random cosmetics and whitespace fixes. X-Git-Tag: libsigrok-0.5.0~476 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=a52e2a0b37a7615b289b813c19329193345b766a;p=libsigrok.git Random cosmetics and whitespace fixes. --- diff --git a/src/hardware/agilent-dmm/api.c b/src/hardware/agilent-dmm/api.c index 9ff02d9a..7ca471c3 100644 --- a/src/hardware/agilent-dmm/api.c +++ b/src/hardware/agilent-dmm/api.c @@ -204,7 +204,6 @@ static int config_set(uint32_t key, GVariant *data, const struct sr_dev_inst *sd static int config_list(uint32_t key, GVariant **data, const struct sr_dev_inst *sdi, const struct sr_channel_group *cg) { - (void)sdi; (void)cg; switch (key) { diff --git a/src/hardware/maynuo-m97/api.c b/src/hardware/maynuo-m97/api.c index ffc5b8f0..d275760a 100644 --- a/src/hardware/maynuo-m97/api.c +++ b/src/hardware/maynuo-m97/api.c @@ -351,7 +351,6 @@ static int config_set(uint32_t key, GVariant *data, const struct sr_dev_inst *sd struct sr_modbus_dev_inst *modbus; int ret; - (void)data; (void)cg; if (sdi->status != SR_ST_ACTIVE) diff --git a/src/hardware/testo/protocol.c b/src/hardware/testo/protocol.c index 4a1af4c4..89f5bc9c 100644 --- a/src/hardware/testo/protocol.c +++ b/src/hardware/testo/protocol.c @@ -25,25 +25,25 @@ SR_PRIV int testo_set_serial_params(struct sr_usb_dev_inst *usb) { int ret; - if ((ret = libusb_control_transfer(usb->devhdl, 0x40, FTDI_SET_BAUDRATE, + if ((ret = libusb_control_transfer(usb->devhdl, 0x40, FTDI_SET_BAUDRATE, FTDI_BAUDRATE_115200, FTDI_INDEX, NULL, 0, 10)) < 0) { sr_err("Failed to set baudrate: %s", libusb_error_name(ret)); return SR_ERR; } - if ((ret = libusb_control_transfer(usb->devhdl, 0x40, FTDI_SET_PARAMS, + if ((ret = libusb_control_transfer(usb->devhdl, 0x40, FTDI_SET_PARAMS, FTDI_PARAMS_8N1, FTDI_INDEX, NULL, 0, 10)) < 0) { sr_err("Failed to set comm parameters: %s", libusb_error_name(ret)); return SR_ERR; } - if ((ret = libusb_control_transfer(usb->devhdl, 0x40, FTDI_SET_FLOWCTRL, + if ((ret = libusb_control_transfer(usb->devhdl, 0x40, FTDI_SET_FLOWCTRL, FTDI_FLOW_NONE, FTDI_INDEX, NULL, 0, 10)) < 0) { sr_err("Failed to set flow control: %s", libusb_error_name(ret)); return SR_ERR; } - if ((ret = libusb_control_transfer(usb->devhdl, 0x40, FTDI_SET_MODEMCTRL, + if ((ret = libusb_control_transfer(usb->devhdl, 0x40, FTDI_SET_MODEMCTRL, FTDI_MODEM_ALLHIGH, FTDI_INDEX, NULL, 0, 10)) < 0) { sr_err("Failed to set modem control: %s", libusb_error_name(ret)); return SR_ERR;