From nobody Tue Apr 05 04:32:51 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 633671A9266A; Tue, 5 Apr 2022 04:32:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KXZWS3Zpxz4gTW; Tue, 5 Apr 2022 04:32:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649133172; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=M3ctDIhxv15BVDZezISw/0d9DxrfPEDPYu9S5IqCUTs=; b=XCuCfHIhzRJ5FiLt/LTzFkdFyokCcRnibw7/YHqA4g+6lWfb9WoLmktQ1tWNuTng9TX5CI anh/qaBoZcUQtuJ2J2JDN4yq0Mm41MPSpLxD6NxzK/JCr+xneXioSFvuzvPeSmeSnIa93b dTnFDDEPhRhMKyEwhIej7B4R/EbIhHh4F7JFlPpFfHN1mStk2B2gyuZEgVktctjvVqL6Hr sBJ8sw8E9DL2p31pdyx3XS3c/5qig67N4KUmiE9hJbjiKcYg9AeWze/hFSZ0ZB4scQhKMC BiW85n7CLc9g/CIjY4VNZOxQc3pgfwN819FupYm8s0ND8pzzOQlr43f6egXYPg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 1B68D1FA7E; Tue, 5 Apr 2022 04:32:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2354Wqj5009567; Tue, 5 Apr 2022 04:32:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2354Wp7v009566; Tue, 5 Apr 2022 04:32:51 GMT (envelope-from git) Date: Tue, 5 Apr 2022 04:32:51 GMT Message-Id: <202204050432.2354Wp7v009566@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 53c1f1fc6091 - main - wsp_intr_callback: eliminate write only variable h List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 53c1f1fc609190733adc2136c98c16086266f03e Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649133172; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=M3ctDIhxv15BVDZezISw/0d9DxrfPEDPYu9S5IqCUTs=; b=XcqiEKJJ524WD6PI/jLYxJM26bE83c3g4QKwGdpKyPweEKOxujoavL6IXpK751wZPjnFn5 yn2cOr+3qtVewtJqAp2BMiI5r44p/iHxKoE4WOkcU31hZFQFFfpEn55mvBixGuylvFt8UB PmbIi5j9vjghF5UXv8pqUBZCjHCR/QyQACnBHQCZmxjCzNRFGDMdgqr848VEIGYKN2y+Dm OZhzrMOpjUhS7RBap1Jkmc9Uv3WVL18DMKHTmMULExCvzSSb0QBj73fPXqYIjtiuhEsO95 rDoy3I+cZQNnjLP/uN5Sg/w5d7+OdlEOvttO/px+t65FkUWC1xVYpoNI9rWgiQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649133172; a=rsa-sha256; cv=none; b=hEDygkkq8SeLFqbhyONjs7u9AY75eQY92LnRaMzDOei4YML/yDIN44vMCdCb/5I1B9Nl/5 lgJew6lT1/uVgmiHUYIbgkZ91FMhpIJxXEH+dtXS4YTw6KBGCJlWwjksgwKsaNOPT7nuIU Jwc6SUGj0/wvCw9smS7eorsOecifR+Y10jexqXxoT9eAr1P1HMjHL1V7elp1ISSmNgP10G gfBvQ+xJGDsK9iZz6jzyvLSSPLGuIAUNAv7IMembjQGHWnEYFYRx+pYHo+rOg3IFfhdiOZ ave0UnVEm3EIXj4sBRy2qn081lEcCmH7XsU+jJMB+++4dMyyBTXB13GvQOS8bQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=53c1f1fc609190733adc2136c98c16086266f03e commit 53c1f1fc609190733adc2136c98c16086266f03e Author: Warner Losh AuthorDate: 2022-04-05 02:29:20 +0000 Commit: Warner Losh 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];