agilent-dmm: style improvement

This commit is contained in:
Aurelien Jacobs 2016-10-17 23:15:51 +02:00
parent 63bb11baba
commit f6e7b6124a
1 changed files with 3 additions and 2 deletions

View File

@ -414,6 +414,7 @@ static int recv_fetc(const struct sr_dev_inst *sdi, GMatchInfo *match)
struct sr_analog_encoding encoding; struct sr_analog_encoding encoding;
struct sr_analog_meaning meaning; struct sr_analog_meaning meaning;
struct sr_analog_spec spec; struct sr_analog_spec spec;
struct sr_channel *prev_chan;
float fvalue; float fvalue;
const char *s; const char *s;
char *mstr; char *mstr;
@ -473,8 +474,8 @@ static int recv_fetc(const struct sr_dev_inst *sdi, GMatchInfo *match)
sr_sw_limits_update_samples_read(&devc->limits, 1); sr_sw_limits_update_samples_read(&devc->limits, 1);
skip_value:; skip_value:
struct sr_channel *prev_chan = devc->cur_channel; prev_chan = devc->cur_channel;
devc->cur_channel = sr_next_enabled_channel(sdi, devc->cur_channel); devc->cur_channel = sr_next_enabled_channel(sdi, devc->cur_channel);
if (devc->cur_channel->index > prev_chan->index) if (devc->cur_channel->index > prev_chan->index)
return JOB_AGAIN; return JOB_AGAIN;