From nobody Tue Apr 12 21:59:08 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 CC3B21AFAE5A; Tue, 12 Apr 2022 21:59:09 +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 4KdKPT0Qxnz4hmq; Tue, 12 Apr 2022 21:59:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649800749; 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=lVz7hH8A6HqAKw58rk97ATlSlc8IUkbEnuzX8BDWyyQ=; b=tPemNu8pajD2a0ailSkUgULaYUGzJJ7vSbA4hXaY9oisVz2DZdAS/CCu7Y19MppRFQcIi4 N/pzXUDb3F2kXzPKEBpppG+4t9tY3nN8wR5P9xJ/PKoSwt/uk8uDom3eHqnlWQD5Ys7xUQ iwRrbkLTohxgzROQxWSKX4uRe6i1NHMRQ3CUqRuDvqP17W6tE1vN45quCuZjsN+O5ZSevH gENOk3vO1we4bKgFHg38kUwjUwj1OA2MmjCqB6vEMmAd6N3qnKQGoKl6wkWxU6RgDSnBQr dCPw2H6MJGbsMc2mPJcCqaCILemC4Ovm2PmvcfyXexkFFzw9Fp6am1+jVesLCw== 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 4562A1F63F; Tue, 12 Apr 2022 21:59:08 +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 23CLx8Av035122; Tue, 12 Apr 2022 21:59:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23CLx8JY035121; Tue, 12 Apr 2022 21:59:08 GMT (envelope-from git) Date: Tue, 12 Apr 2022 21:59:08 GMT Message-Id: <202204122159.23CLx8JY035121@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: 0146e4ce2f94 - main - axidma: Remove unused variables. 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: 0146e4ce2f9425926f2933bf0eb312f2ac937091 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649800749; 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=lVz7hH8A6HqAKw58rk97ATlSlc8IUkbEnuzX8BDWyyQ=; b=fC88OGii/WLaVYXweQ6cBflGc5Cplk96rxCPbbjDy6fKSVixLpzprzs9+C0pR1b0LtRhqG rIRCrnCcP3PZpPB3qxbaGbgwdePvPPaqojsBiACCoQf4R0VeAHYem4wpNGTdiAiBqMltb8 qktnmGT7moFOP+U2XqpKOkRJ4DZBZAYX/m/7C8xY6XIV9dNYrTSgN0HEHl96ER6KG7YCzl TgPw1D9uheUGJcS/iev+KdgTUcFqnTKlaWXQnp3A1vxFEVNZeWH6n4/8g8LzRkYYYFcVUd 5LXTLTaFTv6TWZOkAzVYYrKPdSsTDDoCcOjNNFfJOU2THwTUN9w1xXzbcqso2Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649800749; a=rsa-sha256; cv=none; b=VfQ2rXWMD44I5+et2xuc8QV8QNIQUgYIO3ZS3hPmh2MSovwkkFgjKM3JGipWEp4RJ3Q9ak wYdYNVcrLHJ/I8OYPXyUJS0fNLjBzx2dJ3yX5E55Z7QB9Pn8jWq7SEqbpXZtYf3fKnnwzY JJJssuCG5MTi+puC6OhYn5ONXb0F/jYFdHnF9xnxVjEqr//QBRE6tVaktFp0ioH0vAiskE GV20KCjiWbBot7F9U1KXdX5wV3z1xoptgvz/PGqEqtMi1kB+LK1w3hvtt7GuOBrFobPKdj 6jVZOSWtB28DHR3oZ9kO5vYBwWnUJIN0t+iiZLYx+5NVlQ9/E38oj7qdMJjTYA== 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=0146e4ce2f9425926f2933bf0eb312f2ac937091 commit 0146e4ce2f9425926f2933bf0eb312f2ac937091 Author: John Baldwin AuthorDate: 2022-04-12 21:58:57 +0000 Commit: John Baldwin CommitDate: 2022-04-12 21:58:57 +0000 axidma: Remove unused variables. --- sys/dev/xilinx/axidma.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/sys/dev/xilinx/axidma.c b/sys/dev/xilinx/axidma.c index 0512b3e06d54..be3fcf17d20e 100644 --- a/sys/dev/xilinx/axidma.c +++ b/sys/dev/xilinx/axidma.c @@ -318,9 +318,7 @@ static int axidma_desc_free(struct axidma_softc *sc, struct axidma_channel *chan) { struct xdma_channel *xchan; - int nsegments; - nsegments = chan->descs_num; xchan = chan->xchan; free(chan->descs, M_DEVBUF); @@ -463,7 +461,6 @@ axidma_channel_submit_sg(device_t dev, struct xdma_channel *xchan, uint32_t len; uint32_t tmp; int i; - int tail; dprintf("%s: sg_n %d\n", __func__, sg_n); @@ -476,8 +473,6 @@ axidma_channel_submit_sg(device_t dev, struct xdma_channel *xchan, if (sg_n == 0) return (0); - tail = chan->idx_head; - tmp = 0; for (i = 0; i < sg_n; i++) { @@ -577,12 +572,6 @@ axidma_channel_prep_sg(device_t dev, struct xdma_channel *xchan) static int axidma_channel_control(device_t dev, xdma_channel_t *xchan, int cmd) { - struct axidma_channel *chan; - struct axidma_softc *sc; - - sc = device_get_softc(dev); - - chan = (struct axidma_channel *)xchan->chan; switch (cmd) { case XDMA_CMD_BEGIN: