Random whitespace and other minor fixes.
This commit is contained in:
parent
421bc3eba0
commit
0c5f2abc66
|
@ -738,7 +738,7 @@ static int config_list(uint32_t key, GVariant **data, const struct sr_dev_inst *
|
|||
}
|
||||
|
||||
/* Device options, independent from channel groups. */
|
||||
if (cg == NULL) {
|
||||
if (!cg) {
|
||||
switch (key) {
|
||||
case SR_CONF_DEVICE_OPTIONS:
|
||||
*data = g_variant_new_fixed_array(G_VARIANT_TYPE_UINT32,
|
||||
|
|
|
@ -196,8 +196,7 @@ SR_PRIV int motech_lps_30x_receive_data(int fd, int revents, void *cb_data)
|
|||
}
|
||||
}
|
||||
if (devc->acq_req_pending == 0) {
|
||||
switch(devc->acq_req)
|
||||
{
|
||||
switch (devc->acq_req) {
|
||||
case AQ_NONE: /* Fall through */
|
||||
case AQ_STATUS:
|
||||
devc->acq_req = AQ_U1;
|
||||
|
|
|
@ -815,7 +815,7 @@ static int config_list(uint32_t key, GVariant **data, const struct sr_dev_inst *
|
|||
*data = g_variant_new_fixed_array(G_VARIANT_TYPE_UINT32,
|
||||
scanopts, ARRAY_SIZE(scanopts), sizeof(uint32_t));
|
||||
return SR_OK;
|
||||
} else if (key == SR_CONF_DEVICE_OPTIONS && cg == NULL) {
|
||||
} else if (key == SR_CONF_DEVICE_OPTIONS && !cg) {
|
||||
*data = g_variant_new_fixed_array(G_VARIANT_TYPE_UINT32,
|
||||
devopts, ARRAY_SIZE(devopts), sizeof(uint32_t));
|
||||
return SR_OK;
|
||||
|
|
Loading…
Reference in New Issue