gpio: no printing to stderr on direction change.
authorThomas Ingleby <thomas.c.ingleby@intel.com>
Fri, 20 Jun 2014 15:19:59 +0000 (16:19 +0100)
committerThomas Ingleby <thomas.c.ingleby@intel.com>
Fri, 20 Jun 2014 15:19:59 +0000 (16:19 +0100)
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
src/gpio/gpio.c

index 0b12d8c..d38753c 100644 (file)
@@ -389,7 +389,6 @@ maa_gpio_dir(maa_gpio_context dev, gpio_dir_t dir)
     }
 
     if (write(direction, bu, length*sizeof(char)) == -1) {
-        fprintf(stderr, "Failed to write to direction\n");
         close(direction);
         return MAA_ERROR_INVALID_RESOURCE;
     }