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

Configure Feed

Select the types of activity you want to include in your feed.

vgacon: remove unused xpos from vgacon_set_cursor_size()

xpos is unused, remove it.

Signed-off-by: "Jiri Slaby (SUSE)" <jirislaby@kernel.org>
Cc: Helge Deller <deller@gmx.de>
Cc: linux-fbdev@vger.kernel.org
Cc: dri-devel@lists.freedesktop.org
Signed-off-by: Helge Deller <deller@gmx.de>

authored by

Jiri Slaby (SUSE) and committed by
Helge Deller
c900dc68 6ceed69c

+10 -15
+10 -15
drivers/video/console/vgacon.c
··· 437 437 } 438 438 } 439 439 440 - static void vgacon_set_cursor_size(int xpos, int from, int to) 440 + static void vgacon_set_cursor_size(int from, int to) 441 441 { 442 442 unsigned long flags; 443 443 int curs, cure; ··· 479 479 case CM_ERASE: 480 480 write_vga(14, (c->vc_pos - vga_vram_base) / 2); 481 481 if (vga_video_type >= VIDEO_TYPE_VGAC) 482 - vgacon_set_cursor_size(c->state.x, 31, 30); 482 + vgacon_set_cursor_size(31, 30); 483 483 else 484 - vgacon_set_cursor_size(c->state.x, 31, 31); 484 + vgacon_set_cursor_size(31, 31); 485 485 break; 486 486 487 487 case CM_MOVE: ··· 489 489 write_vga(14, (c->vc_pos - vga_vram_base) / 2); 490 490 switch (CUR_SIZE(c->vc_cursor_type)) { 491 491 case CUR_UNDERLINE: 492 - vgacon_set_cursor_size(c->state.x, 493 - c->vc_cell_height - 492 + vgacon_set_cursor_size(c->vc_cell_height - 494 493 (c->vc_cell_height < 495 494 10 ? 2 : 3), 496 495 c->vc_cell_height - ··· 497 498 10 ? 1 : 2)); 498 499 break; 499 500 case CUR_TWO_THIRDS: 500 - vgacon_set_cursor_size(c->state.x, 501 - c->vc_cell_height / 3, 501 + vgacon_set_cursor_size(c->vc_cell_height / 3, 502 502 c->vc_cell_height - 503 503 (c->vc_cell_height < 504 504 10 ? 1 : 2)); 505 505 break; 506 506 case CUR_LOWER_THIRD: 507 - vgacon_set_cursor_size(c->state.x, 508 - (c->vc_cell_height * 2) / 3, 507 + vgacon_set_cursor_size((c->vc_cell_height * 2) / 3, 509 508 c->vc_cell_height - 510 509 (c->vc_cell_height < 511 510 10 ? 1 : 2)); 512 511 break; 513 512 case CUR_LOWER_HALF: 514 - vgacon_set_cursor_size(c->state.x, 515 - c->vc_cell_height / 2, 513 + vgacon_set_cursor_size(c->vc_cell_height / 2, 516 514 c->vc_cell_height - 517 515 (c->vc_cell_height < 518 516 10 ? 1 : 2)); 519 517 break; 520 518 case CUR_NONE: 521 519 if (vga_video_type >= VIDEO_TYPE_VGAC) 522 - vgacon_set_cursor_size(c->state.x, 31, 30); 520 + vgacon_set_cursor_size(31, 30); 523 521 else 524 - vgacon_set_cursor_size(c->state.x, 31, 31); 522 + vgacon_set_cursor_size(31, 31); 525 523 break; 526 524 default: 527 - vgacon_set_cursor_size(c->state.x, 1, 528 - c->vc_cell_height); 525 + vgacon_set_cursor_size(1, c->vc_cell_height); 529 526 break; 530 527 } 531 528 break;