Random whitespace and other minor fixes.

This commit is contained in:
Uwe Hermann 2015-03-11 23:32:39 +01:00
parent 421bc3eba0
commit 0c5f2abc66
16 changed files with 41 additions and 42 deletions

View File

@ -738,7 +738,7 @@ static int config_list(uint32_t key, GVariant **data, const struct sr_dev_inst *
} }
/* Device options, independent from channel groups. */ /* Device options, independent from channel groups. */
if (cg == NULL) { if (!cg) {
switch (key) { switch (key) {
case SR_CONF_DEVICE_OPTIONS: case SR_CONF_DEVICE_OPTIONS:
*data = g_variant_new_fixed_array(G_VARIANT_TYPE_UINT32, *data = g_variant_new_fixed_array(G_VARIANT_TYPE_UINT32,

View File

@ -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) { if (devc->acq_req_pending == 0) {
switch(devc->acq_req) switch (devc->acq_req) {
{
case AQ_NONE: /* Fall through */ case AQ_NONE: /* Fall through */
case AQ_STATUS: case AQ_STATUS:
devc->acq_req = AQ_U1; devc->acq_req = AQ_U1;

View File

@ -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, *data = g_variant_new_fixed_array(G_VARIANT_TYPE_UINT32,
scanopts, ARRAY_SIZE(scanopts), sizeof(uint32_t)); scanopts, ARRAY_SIZE(scanopts), sizeof(uint32_t));
return SR_OK; 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, *data = g_variant_new_fixed_array(G_VARIANT_TYPE_UINT32,
devopts, ARRAY_SIZE(devopts), sizeof(uint32_t)); devopts, ARRAY_SIZE(devopts), sizeof(uint32_t));
return SR_OK; return SR_OK;