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>
This commit is contained in:
Colin Ian King 2021-04-23 09:13:17 +01:00 коммит произвёл Greg Kroah-Hartman
Родитель e27671f663
Коммит 7158124216
1 изменённых файлов: 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;