summaryrefslogtreecommitdiffstats
path: root/drivers/firmware
diff options
context:
space:
mode:
authorLucas Stach <l.stach@pengutronix.de>2014-11-24 12:06:43 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2014-11-24 14:04:07 +0100
commitb7782cc79f00f492d4743bf786409e6b77ef8ebc (patch)
tree97d94e2b265c6bdc09fe750d8bfd4e36bdea40ab /drivers/firmware
parent7376942e4670604d0fd50e92ad91696e20880cdc (diff)
downloadbarebox-b7782cc79f00f492d4743bf786409e6b77ef8ebc.tar.gz
barebox-b7782cc79f00f492d4743bf786409e6b77ef8ebc.tar.xz
firmware: altera-serial: don't try to check void return value
Fixes: .../altera_serial.c:84:6: error: void value not ignored as it ought to be Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/firmware')
-rw-r--r--drivers/firmware/altera_serial.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/firmware/altera_serial.c b/drivers/firmware/altera_serial.c
index 23ba3b00a4..232f1a6826 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;