Quit the ioctl MOUSE_GETINFO as soon as we have gathered necessary

information.  There is no need to stick around any longer.
MFC after:	2 weeks
This commit is contained in:
yokota 2001-06-29 07:17:14 +00:00
parent d58b1c3120
commit ff27a25089

View File

@ -646,7 +646,7 @@ sc_mouse_ioctl(struct tty *tp, u_long cmd, caddr_t data, int flag,
old_mouse->u.data.x = scp->mouse_xpos;
old_mouse->u.data.y = scp->mouse_ypos;
old_mouse->u.data.buttons = swapb[scp->mouse_buttons & 0x7];
break;
return 0;
default:
return EINVAL;
}