From nobody Tue Apr 19 12:46:05 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 8F97611CF11D; Tue, 19 Apr 2022 12:46:05 +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 4KjNp53Rycz4ShC; Tue, 19 Apr 2022 12:46:05 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650372365; 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=9zMSlcBycaGfeUc4vKvPby8UjpRl6hc6NaBqSzRx5bI=; b=RbI16ptn5+psjAfxv0OHNlcl6h2bv7DXDvpcyV53WkUIX/N7WMz7zLDLmU56W2vxJijk+k lrYrrPNItOZ3yFsiSxVUDvzF7Y64zGJQz/HOUrBRVTloDBZ84Hm/J3O0diaZrX9o0wzvoM KY+rpYjOR9BmOpjKjjqblmshRCrcYOudBUgsrdOCQSWMipw8IBgkHyglCYuRa0ZTh0wxKw L+i8iXReADT0uLidkEoc9UbMbGIMKNpIWxeRC0ZVbkynVnkKT5jkgEkC4zQ2PcraPqX3P2 rz2zY2r+zb6S5l0zc3eFxbFkQ3/vAy7V5p8xMon0BCAYQC0AH1ZhBRu13HRKlw== 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 4D2B2278A1; Tue, 19 Apr 2022 12:46:05 +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 23JCk5w8030406; Tue, 19 Apr 2022 12:46:05 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23JCk5k3030405; Tue, 19 Apr 2022 12:46:05 GMT (envelope-from git) Date: Tue, 19 Apr 2022 12:46:05 GMT Message-Id: <202204191246.23JCk5k3030405@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: d37dca9ec9d0 - main - cxgbe: plug a set-but-not-used var 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: d37dca9ec9d0613ff962d6e63e1bd5c8f0418836 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650372365; 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=9zMSlcBycaGfeUc4vKvPby8UjpRl6hc6NaBqSzRx5bI=; b=mf9a+k3SZMI6UDIh1pSqy5p8xfMeYUY/JE2cALS4yfqewssbJDpcJM2IsUwFOVAc10GV+2 +k2/iESSOiTPzUudPIi9zwlvh83VCzvVMXRjzSaeHuDOGKvLWywKuxsO/8HRj/kFZwwEtD 6ePTHxsn9wqSDxhb23kW0YQg3tbkP2RBydCb8GqOH2pdfLLX6gt28aEZQbHW5/DVs2XN5r jQOblv0itAdC7DVXeRtcMf+N8qoEr/drbIHBDtRrAKIwkY6aKkKxS5Dcp0RGvL5ZN7Zgiz FNX6bFq1IkEZi1amSCmLC1rK60P6NnMWry6SJDx8R13WPi7NLK8i/92eBu8X3w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650372365; a=rsa-sha256; cv=none; b=aUPpx69Tu6WsEEg4qdZKcJ505KBTfex0ll3MwF+u+ux3bm5PcTWMQT9gWxsll8T352Op0M uYjh1dExKLBFQZLmM3s/h6Z+k8zCICiBIUToW1t7kRoCCCKDLCNoljDibpb16i4VtqJSwl lg0gIJthFFSmK2Q3GtX+SEtxqn+xK3JOiRmwxDSot3g2NHT9mG/4GP1vhhVx3yzr750HOP Tquq0xcXxSDptfCPiYsX7Fg8moWNtD5x0PSQ2rVA6ml7CwrkuUbjbxTIut7PqVciAP/8vs mov9GHUVuP88IGMOp83l1kvpXelTNP1NguZJ4SR80oYk9bG5UgkE4xFwsfFOrg== 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=d37dca9ec9d0613ff962d6e63e1bd5c8f0418836 commit d37dca9ec9d0613ff962d6e63e1bd5c8f0418836 Author: Mateusz Guzik AuthorDate: 2022-04-19 12:26:31 +0000 Commit: Mateusz Guzik CommitDate: 2022-04-19 12:45:56 +0000 cxgbe: plug a set-but-not-used var Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/dev/cxgbe/tom/t4_cpl_io.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/dev/cxgbe/tom/t4_cpl_io.c b/sys/dev/cxgbe/tom/t4_cpl_io.c index 4c8b1fa27579..130c2468b20b 100644 --- a/sys/dev/cxgbe/tom/t4_cpl_io.c +++ b/sys/dev/cxgbe/tom/t4_cpl_io.c @@ -2192,7 +2192,6 @@ static void t4_aiotx_process_job(struct toepcb *toep, struct socket *so, struct kaiocb *job) { struct sockbuf *sb; - struct file *fp; struct inpcb *inp; struct tcpcb *tp; struct mbuf *m; @@ -2201,11 +2200,10 @@ t4_aiotx_process_job(struct toepcb *toep, struct socket *so, struct kaiocb *job) sb = &so->so_snd; SOCKBUF_UNLOCK(sb); - fp = job->fd_file; m = NULL; #ifdef MAC - error = mac_socket_check_send(fp->f_cred, so); + error = mac_socket_check_send(job->fd_file->f_cred, so); if (error != 0) goto out; #endif