]> sigrok.org Git - libsigrok.git/commit - src/hardware/baylibre-acme/protocol.c
baylibre-acme: Add a missing return value check.
authorBartosz Golaszewski <redacted>
Mon, 13 Apr 2015 09:44:14 +0000 (11:44 +0200)
committerUwe Hermann <redacted>
Fri, 17 Apr 2015 14:42:36 +0000 (16:42 +0200)
commit192d37e728b13393e9987f3cc888670b60efd197
treed389474d6eeccc2e2a567d8f40ae97a6ff5ad37d
parent09d217a40af9a6b23d11d9c0dbdf78f9aa76682c
baylibre-acme: Add a missing return value check.

Check the return value of sr_gpio_setval_export() in bl_acme_set_power_off()
and return an appropriate error if the call fails.

Signed-off-by: Bartosz Golaszewski <redacted>
src/hardware/baylibre-acme/protocol.c