motech-lps-30x: Cleanup.

This commit is contained in:
Matthias Heidbrink 2014-05-19 21:38:23 +02:00
parent 1f7da0c2bb
commit 419bfb5009
2 changed files with 1 additions and 3 deletions

View File

@ -612,7 +612,7 @@ static int config_set(int key, GVariant *data, const struct sr_dev_inst *sdi,
devc = sdi->priv; devc = sdi->priv;
/* Cannot change settings while aquisition active, would cause a mess with commands. /* Cannot change settings while acquisition active, would cause a mess with commands.
* Changing this would be possible, but tricky. */ * Changing this would be possible, but tricky. */
if (devc->acq_running) if (devc->acq_running)
return SR_ERR_NA; return SR_ERR_NA;

View File

@ -66,12 +66,10 @@ static void send_data(struct sr_dev_inst *sdi)
static void process_line(struct sr_dev_inst *sdi) static void process_line(struct sr_dev_inst *sdi)
{ {
struct dev_context *devc; struct dev_context *devc;
struct sr_serial_dev_inst *serial;
double dbl; double dbl;
int auxint; int auxint;
devc = sdi->priv; devc = sdi->priv;
serial = sdi->conn;
switch (devc->acq_req_pending) { switch (devc->acq_req_pending) {
case 0: /* Should not happen... */ case 0: /* Should not happen... */