X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2Fcurses_cons.c;h=527278933a2bf662170f97a37b4b957ade0336df;hb=198151f1d58834ff7889389007232a3d250f51f1;hp=8824447932c4c74c03903c6e4b0709bd75978efb;hpb=acaadd79c597c8d5180fbfbec79c01fef3dff003;p=palacios.git diff --git a/palacios/src/devices/curses_cons.c b/palacios/src/devices/curses_cons.c index 8824447..5272789 100644 --- a/palacios/src/devices/curses_cons.c +++ b/palacios/src/devices/curses_cons.c @@ -66,8 +66,6 @@ static int cursor_update(uint_t x, uint_t y, void *private_data) PrintDebug(VM_NONE, VCORE_NONE, "cursor_update(%d, %d, %p)\n", x, y, private_data); /* avoid out-of-range coordinates */ - if (x < 0) x = 0; - if (y < 0) y = 0; if (x >= state->cols) x = state->cols - 1; if (y >= state->rows) y = state->rows - 1; offset = (x + y * state->cols) * BYTES_PER_COL;