From: Andrew Morton - coding style - unneeded casts of void* Cc: Matthew Garrett Cc: "Antonino A. Daplas" Signed-off-by: Andrew Morton --- drivers/video/fbsysfs.c | 10 ++++------ 1 files changed, 4 insertions(+), 6 deletions(-) diff -puN drivers/video/fbsysfs.c~add-sysfs-entry-to-disable-framebuffer-access-tidy drivers/video/fbsysfs.c --- devel/drivers/video/fbsysfs.c~add-sysfs-entry-to-disable-framebuffer-access-tidy 2005-11-27 23:54:19.000000000 -0800 +++ devel-akpm/drivers/video/fbsysfs.c 2005-11-27 23:54:49.000000000 -0800 @@ -492,11 +492,10 @@ static ssize_t show_name(struct class_de return snprintf(buf, PAGE_SIZE, "%s\n", fb_info->fix.id); } -static ssize_t store_fbstate(struct class_device *class_device, const char * buf, - size_t count) +static ssize_t store_fbstate(struct class_device *class_device, + const char *buf, size_t count) { - struct fb_info *fb_info = - (struct fb_info *)class_get_devdata(class_device); + struct fb_info *fb_info = class_get_devdata(class_device); u32 state; char *last = NULL; @@ -511,8 +510,7 @@ static ssize_t store_fbstate(struct clas static ssize_t show_fbstate(struct class_device *class_device, char *buf) { - struct fb_info *fb_info = - (struct fb_info *)class_get_devdata(class_device); + struct fb_info *fb_info = class_get_devdata(class_device); return snprintf(buf, PAGE_SIZE, "%d\n", fb_info->state); } _