Revert "baylibre-acme: Fix a compiler warning."

This reverts commit 4cd97e5ad7.

We should actually check the return value of sr_gpio_setval_export().

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
This commit is contained in:
Bartosz Golaszewski 2015-04-13 11:44:13 +02:00 committed by Uwe Hermann
parent 55462b8ba9
commit 09d217a40a
1 changed files with 2 additions and 1 deletions

View File

@ -414,6 +414,7 @@ SR_PRIV int bl_acme_set_power_off(const struct sr_channel_group *cg,
gboolean off)
{
struct channel_group_priv *cgp;
int val;
cgp = cg->priv;
@ -422,7 +423,7 @@ SR_PRIV int bl_acme_set_power_off(const struct sr_channel_group *cg,
return SR_ERR_ARG;
}
sr_gpio_setval_export(pws_gpios[cgp->index], off ? 0 : 1);
val = sr_gpio_setval_export(pws_gpios[cgp->index], off ? 0 : 1);
return SR_OK;
}