From nobody Mon Nov 29 16:49:19 2021 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 0026918B86DE; Mon, 29 Nov 2021 16:49:20 +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 4J2rsq5DByz3ncV; Mon, 29 Nov 2021 16:49:19 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 930D526096; Mon, 29 Nov 2021 16:49:19 +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 1ATGnJkJ047276; Mon, 29 Nov 2021 16:49:19 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1ATGnJEG047275; Mon, 29 Nov 2021 16:49:19 GMT (envelope-from git) Date: Mon, 29 Nov 2021 16:49:19 GMT Message-Id: <202111291649.1ATGnJEG047275@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Edward Tomasz Napierala Subject: git: 1cde21402ab7 - main - cdceem(4): Fix "set but not used" warnings 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: trasz X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1cde21402ab7c2527dec1050f37b14ae077eafe7 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638204559; 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=MNe0upHpBP91Ak04RpPs9IeFK0qEBQC9Wh7gSeoOeE8=; b=sATTlFN+bOQfZtqeULV7nX6mL9jy0XVr7QtpFB1Y0f/4LukS72B6A/DDyuoghjCKCkuqM5 E3h7xu0cTg3MF2+m2t0Yggmh/x7IAHAe/qvq1rGW99hGEw4OwGJpMSFazBXsrNKKkkA2t/ O+1AAtngJRx5kCNyCNvWre3KcjXgHijBZF4PoBi89OKxFqBYSmXq8BD6OUweTjvISbXvoS mm4SYrpoGoP/ZMCq/QN4Xx1iB9lzFy64V/xMwqKEH0VfKmDaNfQ9gvsIqiaWU1w1cvTqxt Y7VRWWY8t0/mHhRlrNrKXPThflBDrJB5CtYow35TjyqIZcpwLbqY0w6zOnGpHg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638204559; a=rsa-sha256; cv=none; b=q9HQbiu+GXZJZ7i7+5bGTOibNTN7QTOmaPbvZl1GV5qxObILc6wwbaH4PuXaY5BNoRQ0uh /8vVFEMFQDAuBUzwyJ+O7mqqJjehWr02gqWU+OIg/fCa7W3sOBRfKpE25YN25H61HlQ42o 8ysu20uiAH1pZDfP4SvTeFqLTkuCe+5wuARF3YILeiadJDKguJzkusKnnxy5UlYKKsihbh 3iS9wDyWq9ej3zNZX+d65GRQ2wqUQuqUqDM+Ap/2j6QJ46FUdsP38jpOI9VXcKkris5gZ3 C5odnwVlvWbU4ijYYD+Wo/f5MJwhZOmS6InkA0jcRz5sMg9Fv3skBCSW1I97NQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by trasz: URL: https://cgit.FreeBSD.org/src/commit/?id=1cde21402ab7c2527dec1050f37b14ae077eafe7 commit 1cde21402ab7c2527dec1050f37b14ae077eafe7 Author: Edward Tomasz Napierala AuthorDate: 2021-11-29 16:42:59 +0000 Commit: Edward Tomasz Napierala CommitDate: 2021-11-29 16:45:15 +0000 cdceem(4): Fix "set but not used" warnings No functional changes. Sponsored By: EPSRC --- sys/dev/usb/net/if_cdceem.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/sys/dev/usb/net/if_cdceem.c b/sys/dev/usb/net/if_cdceem.c index 92441d8173ee..7c56a3482402 100644 --- a/sys/dev/usb/net/if_cdceem.c +++ b/sys/dev/usb/net/if_cdceem.c @@ -571,7 +571,7 @@ cdceem_send_echo(struct usb_xfer *xfer, int *offp) { struct cdceem_softc *sc; struct usb_page_cache *pc; - int maxlen, off; + int maxlen __diagused, off; uint16_t hdr; off = *offp; @@ -610,7 +610,7 @@ cdceem_send_echo_response(struct usb_xfer *xfer, int *offp) { struct cdceem_softc *sc; struct usb_page_cache *pc; - int maxlen, off; + int maxlen __diagused, off; uint16_t hdr; off = *offp; @@ -650,7 +650,7 @@ cdceem_send_data(struct usb_xfer *xfer, int *offp) struct usb_page_cache *pc; struct ifnet *ifp; struct mbuf *m; - int maxlen, off; + int maxlen __diagused, off; uint32_t crc; uint16_t hdr; @@ -714,7 +714,7 @@ cdceem_bulk_write_callback(struct usb_xfer *xfer, usb_error_t usb_error) { struct cdceem_softc *sc; struct ifnet *ifp; - int actlen, aframes, maxlen, off; + int actlen, aframes, maxlen __diagused, off; sc = usbd_xfer_softc(xfer); maxlen = usbd_xfer_max_len(xfer); @@ -783,9 +783,8 @@ static uint32_t cdceem_m_crc32(struct mbuf *m, uint32_t src_offset, uint32_t src_len) { uint32_t crc = 0xFFFFFFFF; - int error; - error = m_apply(m, src_offset, src_len, cdceem_m_crc32_cb, &crc); + m_apply(m, src_offset, src_len, cdceem_m_crc32_cb, &crc); return (crc ^ 0xFFFFFFFF); }