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

fbdev: savage: remove unused variable

vga_in8() was storing the return value in tmp, but that return value
was never used again. so it should be safe to remove those variables.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>

authored by

Sudip Mukherjee and committed by
Tomi Valkeinen
8be02cdf 9cb13ba4

+3 -9
+3 -9
drivers/video/fbdev/savage/savagefb.h
··· 351 351 352 352 static inline void VGAenablePalette(struct savagefb_par *par) 353 353 { 354 - u8 tmp; 355 - 356 - tmp = vga_in8(0x3da, par); 354 + vga_in8(0x3da, par); 357 355 vga_out8(0x3c0, 0x00, par); 358 356 par->paletteEnabled = 1; 359 357 } 360 358 361 359 static inline void VGAdisablePalette(struct savagefb_par *par) 362 360 { 363 - u8 tmp; 364 - 365 - tmp = vga_in8(0x3da, par); 361 + vga_in8(0x3da, par); 366 362 vga_out8(0x3c0, 0x20, par); 367 363 par->paletteEnabled = 0; 368 364 } 369 365 370 366 static inline void VGAwATTR(u8 index, u8 value, struct savagefb_par *par) 371 367 { 372 - u8 tmp; 373 - 374 368 if (par->paletteEnabled) 375 369 index &= ~0x20; 376 370 else 377 371 index |= 0x20; 378 372 379 - tmp = vga_in8(0x3da, par); 373 + vga_in8(0x3da, par); 380 374 vga_out8(0x3c0, index, par); 381 375 vga_out8 (0x3c0, value, par); 382 376 }