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

video: fbdev: atari: Remove unused definitions and variables

Several definitions and variables are unused.
Some variables are set but further unused.

Remove them.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Tested-by: Michael Schmitz <schmitzmic@gmail.com>
Signed-off-by: Helge Deller <deller@gmx.de>

authored by

Geert Uytterhoeven and committed by
Helge Deller
435347ed 39101f13

-20
-20
drivers/video/fbdev/atafb.c
··· 1070 1070 xstretch = 2; /* Double pixel width only for hicolor */ 1071 1071 /* Default values are used for vert./hor. timing if no pixelclock given. */ 1072 1072 if (var->pixclock == 0) { 1073 - int linesize; 1074 - 1075 1073 /* Choose master pixelclock depending on hor. timing */ 1076 1074 plen = 1 * xstretch; 1077 1075 if ((plen * xres + f25.right + f25.hsync + f25.left) * ··· 1088 1090 left_margin = pclock->left / plen; 1089 1091 right_margin = pclock->right / plen; 1090 1092 hsync_len = pclock->hsync / plen; 1091 - linesize = left_margin + xres + right_margin + hsync_len; 1092 1093 upper_margin = 31; 1093 1094 lower_margin = 11; 1094 1095 vsync_len = 3; ··· 2416 2419 * generic drawing routines; imageblit needs updating for image depth > 1 2417 2420 */ 2418 2421 2419 - #if BITS_PER_LONG == 32 2420 - #define BYTES_PER_LONG 4 2421 - #define SHIFT_PER_LONG 5 2422 - #elif BITS_PER_LONG == 64 2423 - #define BYTES_PER_LONG 8 2424 - #define SHIFT_PER_LONG 6 2425 - #else 2426 - #define Please update me 2427 - #endif 2428 - 2429 - 2430 2422 static void atafb_fillrect(struct fb_info *info, const struct fb_fillrect *rect) 2431 2423 { 2432 2424 struct atafb_par *par = info->par; ··· 2517 2531 { 2518 2532 struct atafb_par *par = info->par; 2519 2533 int x2, y2; 2520 - unsigned long *dst; 2521 - int dst_idx; 2522 2534 const char *src; 2523 2535 u32 dx, dy, width, height, pitch; 2524 2536 ··· 2543 2559 2544 2560 if (image->depth == 1) { 2545 2561 // used for font data 2546 - dst = (unsigned long *) 2547 - ((unsigned long)info->screen_base & ~(BYTES_PER_LONG - 1)); 2548 - dst_idx = ((unsigned long)info->screen_base & (BYTES_PER_LONG - 1)) * 8; 2549 - dst_idx += dy * par->next_line * 8 + dx; 2550 2562 src = image->data; 2551 2563 pitch = (image->width + 7) / 8; 2552 2564 while (height--) {