Staging: xgifb: revert a warning fix and resolve it properly
authorGreg Kroah-Hartman <gregkh@suse.de>
Wed, 8 Sep 2010 08:49:45 +0000 (01:49 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 8 Sep 2010 08:49:45 +0000 (01:49 -0700)
commit51973d7fa0a2f2087e640200fda23f6bac71fae2
treeae5dbb58420b1e7e22a7f49223252ced686fceea
parent675d6409ae5ac0816af5e672b7030e350408d563
Staging: xgifb: revert a warning fix and resolve it properly

Jiri pointed out that the previous compiler warning fix was incorrect as
the compiler was properly saying that the variable was not being set.
This was due to a #define commenting out all of the logic in the
function.

This patch reverts Javier's previous one, and properly fixes the issue
by making the function actually doing something.

Reported-by: Jiri Slaby <jirislaby@gmail.com>
Cc: Javier Martinez Canillas <martinez.javier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/xgifb/vb_setmode.c