From b7782cc79f00f492d4743bf786409e6b77ef8ebc Mon Sep 17 00:00:00 2001 From: Lucas Stach Date: Mon, 24 Nov 2014 12:06:43 +0100 Subject: 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 Signed-off-by: Sascha Hauer --- 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 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; -- cgit v1.2.3