Fix typo in cyapa out of bounds check.

PR:		217783
Submitted by:	razmyslov@viva64.com
MFC after:	1 week
This commit is contained in:
Michael Gmelin 2017-08-08 13:27:32 +00:00
parent d683d1a377
commit 9c52035814
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=322253

View file

@ -1455,7 +1455,7 @@ cyapa_raw_input(struct cyapa_softc *sc, struct cyapa_regs *regs, int freq)
sc->delta_x = sc->cap_resx;
if (sc->delta_x < -sc->cap_resx)
sc->delta_x = -sc->cap_resx;
if (sc->delta_y > sc->cap_resx)
if (sc->delta_y > sc->cap_resy)
sc->delta_y = sc->cap_resy;
if (sc->delta_y < -sc->cap_resy)
sc->delta_y = -sc->cap_resy;