mirror of
https://github.com/torvalds/linux.git
synced 2026-05-21 13:27:57 +02:00
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>
This commit is contained in:
parent
c6c94eecb1
commit
8d41ab8763
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user