Drop some lines that are no longer needed.

This commit is contained in:
Uwe Hermann 2013-05-10 18:30:32 +02:00
parent 0bdb4f2e4a
commit decfe89d4e
10 changed files with 2 additions and 24 deletions

View File

@ -172,8 +172,6 @@ static int config_list(int key, GVariant **data, const struct sr_dev_inst *sdi)
GVariantBuilder gvb;
int i;
(void)sdi;
switch (key) {
case SR_CONF_DEVICE_OPTIONS:
*data = g_variant_new_fixed_array(G_VARIANT_TYPE_INT32,

View File

@ -210,8 +210,6 @@ static GSList *hw_dev_list(void)
static int hw_dev_open(struct sr_dev_inst *sdi)
{
(void)sdi;
sdi->status = SR_ST_ACTIVE;
return SR_OK;
@ -219,9 +217,7 @@ static int hw_dev_open(struct sr_dev_inst *sdi)
static int hw_dev_close(struct sr_dev_inst *sdi)
{
(void)sdi;
sdi->status = SR_ST_INACTIVE;
sdi->status = SR_ST_INACTIVE;
return SR_OK;
}

View File

@ -35,8 +35,6 @@ static struct sr_datafeed_analog *handle_qm_18x(const struct sr_dev_inst *sdi,
char *e, *u;
gboolean is_oor;
(void)sdi;
if (strcmp(tokens[0], "QM") || !tokens[1])
return NULL;
@ -159,8 +157,6 @@ static struct sr_datafeed_analog *handle_qm_28x(const struct sr_dev_inst *sdi,
float fvalue;
char *eptr;
(void)sdi;
if (!tokens[1])
return NULL;

View File

@ -343,7 +343,6 @@ static struct dev_context *fx2lafw_dev_new(void)
devc->limit_samples = 0;
devc->sample_wide = 0;
return devc;
}

View File

@ -593,8 +593,6 @@ static int config_list(int key, GVariant **data, const struct sr_dev_inst *sdi)
GVariantBuilder gvb;
unsigned int i;
(void)sdi;
if (!sdi)
return SR_ERR_ARG;

View File

@ -81,8 +81,6 @@ static GSList *hw_scan(GSList *options)
GSList *usb_devices, *devices, *l;
const char *conn;
(void)options;
drvc = di->priv;
conn = NULL;

View File

@ -67,8 +67,6 @@ static GSList *hw_scan(GSList *options)
struct udev *udev;
int ptype;
(void)options;
for (l = options; l; l = l->next) {
src = l->data;
switch (src->key) {

View File

@ -153,8 +153,6 @@ static GSList *hw_scan(GSList *options)
int i;
const char *conn;
(void)options;
drvc = di->priv;
conn = NULL;

View File

@ -72,8 +72,6 @@ static GSList *scan(GSList *options)
const char *conn, *serialcomm;
char buf[8];
(void)options;
drvc = di->priv;
devices = NULL;
@ -464,7 +462,6 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi,
static int dev_acquisition_stop(struct sr_dev_inst *sdi, void *cb_data)
{
/* Avoid compiler warnings. */
(void)cb_data;
abort_acquisition(sdi);

View File

@ -43,7 +43,7 @@ SR_PRIV int rigol_ds1xx2_receive(int fd, int revents, void *cb_data)
int len, i, waveform_size;
struct sr_probe *probe;
(void) fd;
(void)fd;
if (!(sdi = cb_data))
return TRUE;