From: Colin Ian King Date: Fri, 23 Apr 2021 08:13:17 +0000 (+0100) Subject: serial: qcom_geni_serial: redundant initialization to variable line X-Git-Tag: v5.15~789^2~211 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=71581242164f112520025ad465cba48c52f65bd1;p=platform%2Fkernel%2Flinux-starfive.git serial: qcom_geni_serial: redundant initialization to variable line The variable line being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Reviewed-by: Jiri Slaby Signed-off-by: Colin Ian King Addresses-Coverity: ("Unused value") Link: https://lore.kernel.org/r/20210423081317.318352-1-colin.king@canonical.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/qcom_geni_serial.c b/drivers/tty/serial/qcom_geni_serial.c index 23d729e..463f84a 100644 --- a/drivers/tty/serial/qcom_geni_serial.c +++ b/drivers/tty/serial/qcom_geni_serial.c @@ -1338,7 +1338,7 @@ static const struct uart_ops qcom_geni_uart_pops = { static int qcom_geni_serial_probe(struct platform_device *pdev) { int ret = 0; - int line = -1; + int line; struct qcom_geni_serial_port *port; struct uart_port *uport; struct resource *res;