[PATCH 3/4] firmware: altera_serial: gpio_set_value returns void
Sascha Hauer
s.hauer at pengutronix.de
Wed Oct 8 07:46:44 PDT 2014
So do not try to check the return value.
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
drivers/firmware/altera_serial.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/firmware/altera_serial.c b/drivers/firmware/altera_serial.c
index 23ba3b0..232f1a6 100644
--- a/drivers/firmware/altera_serial.c
+++ b/drivers/firmware/altera_serial.c
@@ -81,9 +81,7 @@ static int altera_spi_open(struct firmware_handler *fh)
}
/* arm the FPGA to await its new firmware */
- ret = gpio_set_value(this->nconfig_gpio, 1);
- if (ret)
- return ret;
+ gpio_set_value(this->nconfig_gpio, 1);
/* once again, we might need padding the data */
this->padding_done = false;
--
2.1.0
More information about the barebox
mailing list