Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

udlfb: delete the unused parameter for dlfb_handle_damage

Remove the unused parameter "data" and unused variable "ret".

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Cc: Bernie Thompson <bernie@plugable.com>
Cc: Ladislav Michl <ladis@linux-mips.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>

authored by

Mikulas Patocka and committed by
Bartlomiej Zolnierkiewicz
bd86b6c5 546f98c1

+9 -12
+9 -12
drivers/video/fbdev/udlfb.c
··· 594 594 return 0; 595 595 } 596 596 597 - static int dlfb_handle_damage(struct dlfb_data *dlfb, int x, int y, 598 - int width, int height, char *data) 597 + static int dlfb_handle_damage(struct dlfb_data *dlfb, int x, int y, int width, int height) 599 598 { 600 - int i, ret; 599 + int i; 601 600 char *cmd; 602 601 cycles_t start_cycles, end_cycles; 603 602 int bytes_sent = 0; ··· 640 641 *cmd++ = 0xAF; 641 642 /* Send partial buffer remaining before exiting */ 642 643 len = cmd - (char *) urb->transfer_buffer; 643 - ret = dlfb_submit_urb(dlfb, urb, len); 644 + dlfb_submit_urb(dlfb, urb, len); 644 645 bytes_sent += len; 645 646 } else 646 647 dlfb_urb_completion(urb); ··· 678 679 (u32)info->var.yres); 679 680 680 681 dlfb_handle_damage(dlfb, 0, start, info->var.xres, 681 - lines, info->screen_base); 682 + lines); 682 683 } 683 684 684 685 return result; ··· 694 695 sys_copyarea(info, area); 695 696 696 697 dlfb_handle_damage(dlfb, area->dx, area->dy, 697 - area->width, area->height, info->screen_base); 698 + area->width, area->height); 698 699 } 699 700 700 701 static void dlfb_ops_imageblit(struct fb_info *info, ··· 705 706 sys_imageblit(info, image); 706 707 707 708 dlfb_handle_damage(dlfb, image->dx, image->dy, 708 - image->width, image->height, info->screen_base); 709 + image->width, image->height); 709 710 } 710 711 711 712 static void dlfb_ops_fillrect(struct fb_info *info, ··· 716 717 sys_fillrect(info, rect); 717 718 718 719 dlfb_handle_damage(dlfb, rect->dx, rect->dy, rect->width, 719 - rect->height, info->screen_base); 720 + rect->height); 720 721 } 721 722 722 723 /* ··· 858 859 if (area.y > info->var.yres) 859 860 area.y = info->var.yres; 860 861 861 - dlfb_handle_damage(dlfb, area.x, area.y, area.w, area.h, 862 - info->screen_base); 862 + dlfb_handle_damage(dlfb, area.x, area.y, area.w, area.h); 863 863 } 864 864 865 865 return 0; ··· 1063 1065 pix_framebuffer[i] = 0x37e6; 1064 1066 } 1065 1067 1066 - dlfb_handle_damage(dlfb, 0, 0, info->var.xres, info->var.yres, 1067 - info->screen_base); 1068 + dlfb_handle_damage(dlfb, 0, 0, info->var.xres, info->var.yres); 1068 1069 1069 1070 return 0; 1070 1071 }