aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2021-04-23 09:13:17 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-05-13 16:20:51 +0200
commit71581242164f112520025ad465cba48c52f65bd1 (patch)
treeec84391543e751577749a9ea7d5cda1811c7029b
parentdt-bindings: serial: Add label property in serial.yaml (diff)
downloadlinux-dev-71581242164f112520025ad465cba48c52f65bd1.tar.xz
linux-dev-71581242164f112520025ad465cba48c52f65bd1.zip
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 <jirislaby@kernel.org> Signed-off-by: Colin Ian King <colin.king@canonical.com> Addresses-Coverity: ("Unused value") Link: https://lore.kernel.org/r/20210423081317.318352-1-colin.king@canonical.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/tty/serial/qcom_geni_serial.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/qcom_geni_serial.c b/drivers/tty/serial/qcom_geni_serial.c
index 23d729ed3bf6..463f84a66f6e 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;