From nobody Wed Dec 15 12:33:07 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 3576C18D3971; Wed, 15 Dec 2021 12:33:08 +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 4JDZQq6mGRz3NXR; Wed, 15 Dec 2021 12:33:07 +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 C895A1C34D; Wed, 15 Dec 2021 12:33:07 +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 1BFCX79n089027; Wed, 15 Dec 2021 12:33:07 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BFCX7uq089026; Wed, 15 Dec 2021 12:33:07 GMT (envelope-from git) Date: Wed, 15 Dec 2021 12:33:07 GMT Message-Id: <202112151233.1BFCX7uq089026@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: fe30e08ac736 - main - ng_pppoe: plug 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: fe30e08ac736cc655f9eb0cd793113eda0b497c0 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639571588; 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=bz6sc/HSkGjMYiuRveFgfxYigCcZODrf47jRnFR+XFs=; b=GkPzP/KcETf4YLkcLwVfnS+S3Eb3WUgGs6bKmhsy1Mj1JgLc/31RvMbfVtsj8ThF/xj1v1 r4eVNs4J8qgrDblu3Lbdyki5wsN4f9fagjU5rR9Qsm4IJz269zcYl9qMos7hYPyJDmqy9u GXeL0a8nCyDD9bcDv/XXJhXZ/x3R7X7NjyXd3m4GLu0qQRTZs4QLV0MNsSa8f6+evsbU18 CSe+jmpLNLhDLKmv46449tuqmE0Ayp/rvWtwDVIS3/MN/35o1hbHOjs8KL/Glxsk0lzK3r pOUwPfCNdQ+T06goWaPFkKvwx9MZ1AyZdOuZbAX7LPefn+NqtHlPCMPtgA+rbw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639571588; a=rsa-sha256; cv=none; b=PVV3XTq99aVc3D3NqJgVlyyhj9/Nzoeu+k4Fac61P7/F3AxKkGkeh/V+vxfa2Hoqt53Z1h 0QjPLuwC3fufNNlS8x3k60BZEqSIdycCZyTurjFEwhGt3dK4a+3gE3GHCov9BUsW7ouZ+s KlNosRREh6cuKH6t4aDhbTSzFj69/Y12hQwdmE0dPDNlGYMbmBzOorwCFHFcvIm7/kt78d cICHbI75mVMeS5Z0IrkHXoNrx8ut7rJBV7thI0NGa5LnPTu610FOD2CpFVGBO3BW9sQaop 5QTOncLM9mCkMtMuNkd2hD5N9n+QIr57/+cqRMm9q31Z5TiwoS7kFCWrJScUsg== 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=fe30e08ac736cc655f9eb0cd793113eda0b497c0 commit fe30e08ac736cc655f9eb0cd793113eda0b497c0 Author: Mateusz Guzik AuthorDate: 2021-12-15 12:32:40 +0000 Commit: Mateusz Guzik CommitDate: 2021-12-15 12:32:40 +0000 ng_pppoe: plug set-but-not-used vars Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/netgraph/ng_pppoe.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/sys/netgraph/ng_pppoe.c b/sys/netgraph/ng_pppoe.c index 295a136cc554..a18d6a0498a7 100644 --- a/sys/netgraph/ng_pppoe.c +++ b/sys/netgraph/ng_pppoe.c @@ -1462,8 +1462,6 @@ ng_pppoe_rcvdata(hook_p hook, item_p item) struct mbuf *m0; const struct pppoe_hdr *ph; negp neg = sp->neg; - uint16_t session; - uint16_t length; uint8_t code; /* @@ -1478,8 +1476,6 @@ ng_pppoe_rcvdata(hook_p hook, item_p item) } wh = mtod(m, struct pppoe_full_hdr *); ph = &wh->ph; - session = ntohs(wh->ph.sid); - length = ntohs(wh->ph.length); code = wh->ph.code; /* Use peers mode in session. */ neg->pkt->pkt_header.eh.ether_type = wh->eh.ether_type; @@ -1569,7 +1565,6 @@ ng_pppoe_rcvdata_ether(hook_p hook, item_p item) struct mbuf *m; hook_p sendhook; int error = 0; - uint16_t session; uint16_t length; uint8_t code; struct mbuf *m0; @@ -1639,7 +1634,6 @@ ng_pppoe_rcvdata_ether(hook_p hook, item_p item) wh = mtod(m, struct pppoe_full_hdr *); length = ntohs(wh->ph.length); ph = &wh->ph; - session = ntohs(wh->ph.sid); code = wh->ph.code; switch(code) {