Date: Sun, 2 Oct 2022 04:30:01 GMT From: Warner Losh <imp@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: fff078d9ad06 - stable/13 - wsp_intr_callback: eliminate write only variable h Message-ID: <202210020430.2924U1Bd060422@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=fff078d9ad06e10b51a3fb6d3327743fa96b5fc3 commit fff078d9ad06e10b51a3fb6d3327743fa96b5fc3 Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2022-07-08 17:53:33 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2022-10-02 04:25:56 +0000 wsp_intr_callback: eliminate write only variable h Sponsored by: Netflix (cherry picked from commit 53c1f1fc609190733adc2136c98c16086266f03e) --- sys/dev/usb/input/wsp.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sys/dev/usb/input/wsp.c b/sys/dev/usb/input/wsp.c index 526f4a0011c1..b1492f1f4c0c 100644 --- a/sys/dev/usb/input/wsp.c +++ b/sys/dev/usb/input/wsp.c @@ -921,7 +921,6 @@ wsp_intr_callback(struct usb_xfer *xfer, usb_error_t error) const struct wsp_dev_params *params = sc->sc_params; struct usb_page_cache *pc; struct tp_finger *f; - struct tp_header *h; struct wsp_tuning tun = wsp_tuning; int ntouch = 0; /* the finger number in touch */ int ibt = 0; /* button status */ @@ -963,8 +962,6 @@ wsp_intr_callback(struct usb_xfer *xfer, usb_error_t error) memset(sc->tp_data + len, 0, sc->tp_datalen - len); } - h = (struct tp_header *)(sc->tp_data); - if (params->tp != wsp_tp + TYPE1) { ibt = sc->tp_data[params->tp->button]; ntouch = sc->tp_data[params->tp->button - 1];
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202210020430.2924U1Bd060422>