aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-08-09 18:40:42 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-09-04 12:43:54 +0200
commit8d41ab87630bdd249996a7ec1f138a23bcd2f5ff (patch)
tree84277ddb12315c2f50d93aabe434143a7977570c /drivers/tty
parentparport: parport_serial: Add support for Sunix Multi I/O boards (diff)
downloadlinux-dev-8d41ab87630bdd249996a7ec1f138a23bcd2f5ff.tar.xz
linux-dev-8d41ab87630bdd249996a7ec1f138a23bcd2f5ff.zip
tty/serial: atmel: remove redundant assignment to ret
Variable ret is initialized to a value that is never read and it is re-assigned later. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <colin.king@canonical.com> Link: https://lore.kernel.org/r/20190809174042.6276-1-colin.king@canonical.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/serial/atmel_serial.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/atmel_serial.c b/drivers/tty/serial/atmel_serial.c
index 0b4f36905321..19a85d6fe3d2 100644
--- a/drivers/tty/serial/atmel_serial.c
+++ b/drivers/tty/serial/atmel_serial.c
@@ -2888,7 +2888,7 @@ static int atmel_serial_probe(struct platform_device *pdev)
struct atmel_uart_port *atmel_port;
struct device_node *np = pdev->dev.parent->of_node;
void *data;
- int ret = -ENODEV;
+ int ret;
bool rs485_enabled;
BUILD_BUG_ON(ATMEL_SERIAL_RINGSIZE & (ATMEL_SERIAL_RINGSIZE - 1));