summaryrefslogtreecommitdiffstats
path: root/drivers/video/console
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2015-05-18 19:43:21 +0200
committerTomi Valkeinen <tomi.valkeinen@ti.com>2015-05-27 12:54:49 +0300
commit36520841a443d5ee966f9632c417fcc8a25e07e3 (patch)
treee9c935bf7c3b6b40d9d3c10a3ce01afe549bb61a /drivers/video/console
parent1ebd8eccf542ee406a945c8569e362c09c93ee2c (diff)
downloadop-kernel-dev-36520841a443d5ee966f9632c417fcc8a25e07e3.zip
op-kernel-dev-36520841a443d5ee966f9632c417fcc8a25e07e3.tar.gz
video/console: use swap() in newport_bmove()
Use kernel.h macro definition. Signed-off-by: Fabian Frederick <fabf@skynet.be> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/console')
-rw-r--r--drivers/video/console/newport_con.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/video/console/newport_con.c b/drivers/video/console/newport_con.c
index a6ab929..bb4e962 100644
--- a/drivers/video/console/newport_con.c
+++ b/drivers/video/console/newport_con.c
@@ -687,7 +687,7 @@ static int newport_scroll(struct vc_data *vc, int t, int b, int dir,
static void newport_bmove(struct vc_data *vc, int sy, int sx, int dy,
int dx, int h, int w)
{
- short xs, ys, xe, ye, xoffs, yoffs, tmp;
+ short xs, ys, xe, ye, xoffs, yoffs;
xs = sx << 3;
xe = ((sx + w) << 3) - 1;
@@ -701,9 +701,7 @@ static void newport_bmove(struct vc_data *vc, int sy, int sx, int dy,
yoffs = (dy - sy) << 4;
if (xoffs > 0) {
/* move to the right, exchange starting points */
- tmp = xe;
- xe = xs;
- xs = tmp;
+ swap(xe, xs);
}
newport_wait(npregs);
npregs->set.drawmode0 = (NPORT_DMODE0_S2S | NPORT_DMODE0_BLOCK |
OpenPOWER on IntegriCloud