diff options
author | Peter Hurley <peter@hurleysoftware.com> | 2016-04-09 20:49:43 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-04-30 09:26:55 -0700 |
commit | f56f0a54b013ae03a9f9b7701e2ce65aea674889 (patch) | |
tree | 5fff3248f4369bf879cd159ef1ce8007be2a538f | |
parent | d601744dc145a27945e97d643d2f5d298ab40627 (diff) | |
download | blackbird-op-linux-f56f0a54b013ae03a9f9b7701e2ce65aea674889.tar.gz blackbird-op-linux-f56f0a54b013ae03a9f9b7701e2ce65aea674889.zip |
serial: omap8250: Eliminate local in omap8250_runtime_resume()
Eliminate 'loss_cntx' local variable.
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/tty/serial/8250/8250_omap.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/tty/serial/8250/8250_omap.c b/drivers/tty/serial/8250/8250_omap.c index 7c8c88653374..abeaf5eb1275 100644 --- a/drivers/tty/serial/8250/8250_omap.c +++ b/drivers/tty/serial/8250/8250_omap.c @@ -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) |