serial: omap8250: Eliminate local in omap8250_runtime_resume()
authorPeter Hurley <peter@hurleysoftware.com>
Sun, 10 Apr 2016 03:49:43 +0000 (20:49 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Apr 2016 16:26:55 +0000 (09:26 -0700)
Eliminate 'loss_cntx' local variable.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_omap.c

index 7c8c886..abeaf5e 100644 (file)
@@ -1403,16 +1403,14 @@ static int omap8250_runtime_resume(struct device *dev)
 {
        struct omap8250_priv *priv = dev_get_drvdata(dev);
        struct uart_8250_port *up;
-       int loss_cntx;
 
        /* In case runtime-pm tries this before we are setup */
        if (!priv)
                return 0;
 
        up = serial8250_get_port(priv->line);
-       loss_cntx = omap8250_lost_context(up);
 
-       if (loss_cntx)
+       if (omap8250_lost_context(up))
                omap8250_restore_regs(up);
 
        if (up->dma && up->dma->rxchan)