]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
vgacon: vgacon_scrolldelta simplification
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Thu, 16 Oct 2008 05:03:50 +0000 (22:03 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 16 Oct 2008 18:21:45 +0000 (11:21 -0700)
commit5ab4840968cd094586f65fce978e35c66d25ac78
tree97505fbfc59bb53771602dc7a733afd884886b58
parentc38182a713df5268d8a4a33819a77f93b950f84c
vgacon: vgacon_scrolldelta simplification

There's no point in checking diff == c->vc_rows, because it can be true
only when count == 0, but we already checked that.  Additionally move
variables used only in one block to this block.

Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Cc: Antonino Daplas <adaplas@gmail.com>
Acked-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/console/vgacon.c