summaryrefslogtreecommitdiffstats
path: root/drivers/video/intelfb/intelfbdrv.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2006-03-23 19:23:48 +1100
committerDave Airlie <airlied@linux.ie>2006-04-03 11:43:28 +1000
commit8b91b0b4f2d731b92f59bc82492769a09b4955a6 (patch)
treeaeb384e59229d4814733195db5836ad9ab448c17 /drivers/video/intelfb/intelfbdrv.c
parent8bb91f6a2d1db8031bfbb367df075f041d0cdfe2 (diff)
intelfb: fixup whitespace..
repeat after me, I must not take code from X without reformatting... Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/video/intelfb/intelfbdrv.c')
-rw-r--r--drivers/video/intelfb/intelfbdrv.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/video/intelfb/intelfbdrv.c b/drivers/video/intelfb/intelfbdrv.c
index b96001b5d94..f659ca8d165 100644
--- a/drivers/video/intelfb/intelfbdrv.c
+++ b/drivers/video/intelfb/intelfbdrv.c
@@ -1467,7 +1467,7 @@ static int
intelfb_cursor(struct fb_info *info, struct fb_cursor *cursor)
{
struct intelfb_info *dinfo = GET_DINFO(info);
- int ret;
+ u32 physical;
#if VERBOSE > 0
DBG_MSG("intelfb_cursor\n");
#endif
@@ -1478,12 +1478,10 @@ intelfb_cursor(struct fb_info *info, struct fb_cursor *cursor)
intelfbhw_cursor_hide(dinfo);
/* If XFree killed the cursor - restore it */
- if (dinfo->mobile || IS_I9xx(dinfo))
- ret = (INREG(CURSOR_A_BASEADDR) != dinfo->cursor.physical);
- else
- ret = (INREG(CURSOR_A_BASEADDR) != dinfo->cursor.offset << 12);
+ physical = (dinfo->mobile || IS_I9xx(dinfo)) ? dinfo->cursor.physical :
+ (dinfo->cursor.offset << 12);
- if (ret) {
+ if (INREG(CURSOR_A_BASEADDR) != physical) {
u32 fg, bg;
DBG_MSG("the cursor was killed - restore it !!\n");