Date: Tue, 5 Apr 2022 04:32:51 GMT From: Warner Losh <imp@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 53c1f1fc6091 - main - wsp_intr_callback: eliminate write only variable h Message-ID: <202204050432.2354Wp7v009566@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=53c1f1fc609190733adc2136c98c16086266f03e commit 53c1f1fc609190733adc2136c98c16086266f03e Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2022-04-05 02:29:20 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2022-04-05 04:30:33 +0000 wsp_intr_callback: eliminate write only variable h Sponsored by: Netflix --- 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 2c70b24d1f89..c2da3df598c5 100644 --- a/sys/dev/usb/input/wsp.c +++ b/sys/dev/usb/input/wsp.c @@ -926,7 +926,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 */ @@ -968,8 +967,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?202204050432.2354Wp7v009566>