From nobody Fri Dec 10 12:19:44 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 91E0118CD8BA; Fri, 10 Dec 2021 12:19:44 +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 4J9VMh2LC2z3qBW; Fri, 10 Dec 2021 12:19:44 +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 2CEEC1A2C9; Fri, 10 Dec 2021 12:19:44 +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 1BACJiRx043407; Fri, 10 Dec 2021 12:19:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BACJiFA043406; Fri, 10 Dec 2021 12:19:44 GMT (envelope-from git) Date: Fri, 10 Dec 2021 12:19:44 GMT Message-Id: <202112101219.1BACJiFA043406@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mateusz Guzik Subject: git: 8117f96f248e - main - bxe: plug some of set-but-not-used vars 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: mjg X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8117f96f248ed1bf1f6362f9207628cb87b91a2a Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639138784; 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=uzDKIJ0ge13xNCz1euBOQ3weepnejJnqjMBXr8t2QE8=; b=iWDsfrA1FFaisioKymGm6q0gpiVpOOUJZMiOthBZ4TeOWY0poYcV/7yf0L+Sv18C5j4GVJ ORnLNVN4Wvsdev4553iaUtmp0UG4NLtkydmANuNL4aWieKvnBNt1vdcnbEYS3JnueSDRy5 ROio/+q1qEHPipTfQu7BGDTbqx4l7bMSe+m/nHcBhpLPpsqLIO8MYwlLqVtwjkB5mZ0lOI gV5pb3YWZECgfARMY6o/HnuchF7uYwNvhxpblsVL5TcVe45Lzk1YtqmbRjDmm1cKT8k7NH g307r8OTTtXRyYKaI0V88rGy4+nexV8l05c7SpkY46thHTemPdA8Tq63d6qH4w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639138784; a=rsa-sha256; cv=none; b=K1kPpgYx729Jn6jOFcUGGW5Bl2/896VxrIoXpt2PcVqqis28eB0CTZl0v9UxzlB00Z2CDp aWijSwGlERnjLfuNwF5/o5lDFe3lTkKuy+/ggcsHtZmFflE3DhM0hw/vr/ZQRQPFOmW26x F7MABG7XO8WLHwS1Lwz0tpZz+Ify6m+Xl27VbDPoNWPbRiXh5AtrxnJLudDKxkH/NEl7dN bwrXKuK4eG8x0cRXlMejzayueSfUvn8nT54awGatpBeLloAXhXNVyUL1mdV35bIpWs4oQH kJ9M9crdIOCghNyVbovV6XwtAsc77uIvbY3v3Wqpn830GWgsRbN/8vZxV2VMIw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=8117f96f248ed1bf1f6362f9207628cb87b91a2a commit 8117f96f248ed1bf1f6362f9207628cb87b91a2a Author: Mateusz Guzik AuthorDate: 2021-12-10 12:19:16 +0000 Commit: Mateusz Guzik CommitDate: 2021-12-10 12:19:16 +0000 bxe: plug some of set-but-not-used vars Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/dev/bxe/bxe.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/sys/dev/bxe/bxe.c b/sys/dev/bxe/bxe.c index 62f608190f8e..a50a190afd22 100644 --- a/sys/dev/bxe/bxe.c +++ b/sys/dev/bxe/bxe.c @@ -2767,7 +2767,7 @@ bxe_tpa_start(struct bxe_softc *sc, struct bxe_sw_rx_bd tmp_bd; struct bxe_sw_rx_bd *rx_buf; struct eth_rx_bd *rx_bd; - int max_agg_queues; + int max_agg_queues __diagused; struct bxe_sw_tpa_info *tpa_info = &fp->rx_tpa_info[queue]; uint16_t index; @@ -4794,9 +4794,7 @@ bxe_chktso_window(struct bxe_softc *sc, uint32_t num_wnds, wnd_size, wnd_sum; int32_t frag_idx, wnd_idx; unsigned short lso_mss; - int defrag; - defrag = 0; wnd_sum = 0; wnd_size = 10; num_wnds = nsegs - wnd_size; @@ -6084,11 +6082,8 @@ bxe_alloc_mem(struct bxe_softc *sc) static void bxe_free_rx_bd_chain(struct bxe_fastpath *fp) { - struct bxe_softc *sc; int i; - sc = fp->sc; - if (fp->rx_mbuf_tag == NULL) { return; } @@ -6146,11 +6141,8 @@ bxe_free_tpa_pool(struct bxe_fastpath *fp) static void bxe_free_sge_chain(struct bxe_fastpath *fp) { - struct bxe_softc *sc; int i; - sc = fp->sc; - if (fp->rx_sge_mbuf_tag == NULL) { return; } @@ -19288,7 +19280,6 @@ bxe_eioctl(struct cdev *dev, u_long cmd, caddr_t data, int fflag, { struct bxe_softc *sc; int rval = 0; - device_t pci_dev; bxe_grcdump_t *dump = NULL; int grc_dump_size; bxe_drvinfo_t *drv_infop = NULL; @@ -19303,8 +19294,6 @@ bxe_eioctl(struct cdev *dev, u_long cmd, caddr_t data, int fflag, if ((sc = (struct bxe_softc *)dev->si_drv1) == NULL) return ENXIO; - pci_dev= sc->dev; - dump = (bxe_grcdump_t *)data; switch(cmd) {