FreeBSD Bugzilla – Attachment 180816 Details for
Bug 217783
sys/dev/cyapa/cyapa.c: PVS-Studio: V778 Two similar code fragments were found. Perhaps, this is a typo and 'cap_resy' variable should be used instead of 'cap_resx'.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
git patch
cyapa.c.patch (text/plain), 522 bytes, created by
Svyatoslav
on 2017-03-14 13:29:26 UTC
(
hide
)
Description:
git patch
Filename:
MIME Type:
Creator:
Svyatoslav
Created:
2017-03-14 13:29:26 UTC
Size:
522 bytes
patch
obsolete
>diff --git a/sys/dev/cyapa/cyapa.c b/sys/dev/cyapa/cyapa.c >index d3a0ef1..f664db2 100644 >--- a/sys/dev/cyapa/cyapa.c >+++ b/sys/dev/cyapa/cyapa.c >@@ -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;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 217783
: 180816