soc: qcom-geni-se: remove redundant initialization to variable line
PATCH 1/1 soc: qcom-geni-se: remove redundant initialization to variable line
From: Colin Ian King <[email protected]>
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.
Addresses-Coverity: ("Unused value")
--- drivers/tty/serial/qcom_geni_serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/tty/serial/qcom_geni_serial.c +1 -1
@@ -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;
Signature · 1 line
2.30.2
Quoted 8 lines · Colin King
From: Colin Ian King <[email protected]>
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.
Addresses-Coverity: ("Unused value")
Signed-off-by Colin Ian King <[email protected]>
Quoted 18 lines
--- drivers/tty/serial/qcom_geni_serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/tty/serial/qcom_geni_serial.c +1
-1@@ -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;
Signature · 2 lines
js suse labs
Greg Kroah-Hartman
maintainerQuoted 11 lines · Colin King
From: Colin Ian King <[email protected]>
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.
Addresses-Coverity: ("Unused value")
Signed-off-by Colin Ian King <[email protected]>--- drivers/tty/serial/qcom_geni_serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Your subject line is odd, this is not a "SOC" driver :(