Skip to contentSkip to conversation

Staging: xgifb: Remove unused function fbcon_XGI_sync

PATCH In review Javier Martinez Canillas 2 participants 2 messages Feb 21, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 3/3 Staging: xgifb: Remove unused function fbcon_XGI_sync

Due a cleanup in earlier patches, the function fbcon_XGI_sync now does nothing so it has to be removed.

This patches removes the unused function.

---

v2: Remove the .fb_sync member instead of explicitly set it to NULL suggested by Dan Carpenter.

 drivers/staging/xgifb/XGI_accel.c   |    5 -----
 drivers/staging/xgifb/XGI_main.h    |    1 -
 drivers/staging/xgifb/XGI_main_26.c |    1 -
 3 files changed, 0 insertions(+), 7 deletions(-)
drivers/staging/xgifb/XGI_accel.c +0 -5
index 7c69e07..905b34a 100644
@@ -115,11 +115,6 @@ void XGIfb_syncaccel(void)
 
 }
 
-int fbcon_XGI_sync(struct fb_info *info)
-{
-	return 0;
-}
-
 void fbcon_XGI_fillrect(struct fb_info *info, const struct fb_fillrect *rect)
 {
 	if (!rect->width || !rect->height)
drivers/staging/xgifb/XGI_main.h +0 -1
index e8e2bfe..1b45414 100644
@@ -797,7 +797,6 @@ extern void     fbcon_XGI_fillrect(struct fb_info *info,
                                    const struct fb_fillrect *rect);
 extern void     fbcon_XGI_copyarea(struct fb_info *info,
                                    const struct fb_copyarea *area);
-extern int      fbcon_XGI_sync(struct fb_info *info);
 
 static int XGIfb_ioctl(struct fb_info *info, unsigned int cmd,
 			    unsigned long arg);
drivers/staging/xgifb/XGI_main_26.c +0 -1
index b52e11f..c77ac4a 100644
@@ -1741,7 +1741,6 @@ static struct fb_ops XGIfb_ops = {
 	.fb_fillrect = fbcon_XGI_fillrect,
 	.fb_copyarea = fbcon_XGI_copyarea,
 	.fb_imageblit = cfb_imageblit,
-	.fb_sync = fbcon_XGI_sync,
 	.fb_ioctl = XGIfb_ioctl,
 	/* .fb_mmap = XGIfb_mmap, */
 };
Signature · 1 line
1.7.0.4