From nobody Wed Apr 06 23:46:17 2022 X-Original-To: dev-commits-src-main@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 7B4CF1A83EA2; Wed, 6 Apr 2022 23:46:19 +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 4KYh3t29rqz4QnX; Wed, 6 Apr 2022 23:46:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649288778; 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=Zde0SDts1RfH3p6JqAhzBjomx3IJ35CZL5yaD5b9dGw=; b=pkVC1RcUnwHhFqjoSEWe3zourv3CMVUpHFAWTfS1nB0KL8YUfrIj/Fph/FuNDDsxM8nAiC gO9n8LyvjiakVULzADXL5OjuwcqB6UV3HHJwQeq0ArISBE8o/v7RPxK8U499N+JVQPKojw sVMX+cI4+9r906voMrpcz46tQIEklN1ZMB4GotKhvjVMtQbawfSsv2t7nDFaBrAvfhJX5c jX7OM01lu51DzeKGRiWDBOygLjDuxrsFZ5FHjePzjg9jZaKwLRGnE49EmQ7vPbN/TWnKdx 0LmFGmaxH3ID7/xk7wx0bT/6rWeChRsdP9eJxJR12mbmV7ZbVVcae2MgLR+OkA== 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 CFD4A24E17; Wed, 6 Apr 2022 23:46:17 +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 236NkHun009045; Wed, 6 Apr 2022 23:46:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 236NkHhE009044; Wed, 6 Apr 2022 23:46:17 GMT (envelope-from git) Date: Wed, 6 Apr 2022 23:46:17 GMT Message-Id: <202204062346.236NkHhE009044@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: ee28ad11b763 - main - iavf: Quite set but not used warnings. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ee28ad11b7635715ed7d2f5815ace34c433992d1 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649288778; 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=Zde0SDts1RfH3p6JqAhzBjomx3IJ35CZL5yaD5b9dGw=; b=Q/UgV88yKuB0EGD8ipGU+N9huHkDvzUQjs/6BkjkC8IlQ+A0+qlukobNPwliviizB3VerS HOUWUog80EZi74t4u8GwPXifXhuddFzYg4uQ950U5ORSRNB35HkhnC6Iyg/dPkUvAlTxKK +l/4D3Gd82QyWdJM17cJKwgXitUAKkZRwLB03CYBH9qDMd1sdBvEb0nosPgVbq8FxNKamF DWEFHbZEErYrY3qRKkzZqlKsPX8t+RVcVNpOw6Ie7XjGHKNiCziSX7EGA6MG0J5vdgAFUd 3d03n33yL/3VXIwR48Rv+EMUqAkAZ7RGOjLN4EYu6rdFYIkCOcsOB6Nem+Qp0g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649288778; a=rsa-sha256; cv=none; b=naOKstx1U3s03/iausd1Zr6TqKMIG9zRkMpeatI5aY5J4UngXFbNMMdO0HAkq9hK/RdOby np0Hd0WiS+zI+b6E14OKeXLXPPcp6ZVbBP+IhI0OYTX8dsXEqREW/cE3Xw1zvDgXa+sVpc JGTtbwYlUOyi6JRNMoGVD3GCUXhboTYTIE4ejg4mRIOgCBkg4U/meQvFa6X7O+TnF1o9aN 1kXFTiUfyLPKMUJ+Gesm/D6e5xgSPT5urtpX2QiGDM6PLRZjTqEXF6NubfY2Cmh22FXgUG laWATXAYBjQB7ZgDHquDNJHcbcapNIPK72t8WQHzYCCIQ3e0sN1nuU26O0yeAg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=ee28ad11b7635715ed7d2f5815ace34c433992d1 commit ee28ad11b7635715ed7d2f5815ace34c433992d1 Author: John Baldwin AuthorDate: 2022-04-06 23:45:28 +0000 Commit: John Baldwin CommitDate: 2022-04-06 23:45:28 +0000 iavf: Quite set but not used warnings. Move declaration of dev in iavf_if_attach_post under #ifdef IXL_DEBUG. Remove unused ifp in iavf_stop. --- sys/dev/iavf/if_iavf_iflib.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/sys/dev/iavf/if_iavf_iflib.c b/sys/dev/iavf/if_iavf_iflib.c index 7ee43e50a48d..1f6c056bdf0a 100644 --- a/sys/dev/iavf/if_iavf_iflib.c +++ b/sys/dev/iavf/if_iavf_iflib.c @@ -463,13 +463,14 @@ iavf_setup_vc_tq(struct iavf_sc *sc) static int iavf_if_attach_post(if_ctx_t ctx) { - device_t dev; +#ifdef IXL_DEBUG + device_t dev = iflib_get_dev(ctx); +#endif struct iavf_sc *sc; struct iavf_hw *hw; struct iavf_vsi *vsi; int error = 0; - dev = iflib_get_dev(ctx); INIT_DBG_DEV(dev, "begin"); sc = iavf_sc_from_ctx(ctx); @@ -1767,10 +1768,6 @@ iavf_update_link_status(struct iavf_sc *sc) static void iavf_stop(struct iavf_sc *sc) { - struct ifnet *ifp; - - ifp = sc->vsi.ifp; - iavf_clear_state(&sc->state, IAVF_STATE_RUNNING); iavf_disable_intr(&sc->vsi);