From nobody Wed Apr 06 23:46:16 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 456451A83B56; Wed, 6 Apr 2022 23:46:17 +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 4KYh3r5vFgz4Qt8; Wed, 6 Apr 2022 23:46:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649288776; 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=QlFiJRdfIuOS/VnfCoRDSdg3ck+ThwiWhjmL1YaUhik=; b=EoTI+PfMAuTV43+ffsMjw/4sIOMEVIX1T5JtM0cn05SIQ5hufLCqVVTCRKfcb9yIJNQrQF wsTo5Q9ipgyh9QqBm9xRrSrotvjYvdviGSrRkFjR9LE/mRo39ji6/8ETMPV+4Wje4uh429 fjHZNvYpKLSH3Cel2xqLDFuPy3oPraBe43VOpQYjkTCNQSR9jWXbAMFie1IjCkokg6UpWI 9Qy3B6tAsN2YJcAj4s5jogBgyOArcXMbtuyjLDs4MwLXLoQhAE9NgB8impq27BqI6vM702 6mqPhAW+TI/M0IPdMzYBpupOeOaZhYoBI8k+L2TOV5aoM+3ZytxEIhs1b9YSFA== 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 A6A522486D; Wed, 6 Apr 2022 23:46:16 +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 236NkGha009021; Wed, 6 Apr 2022 23:46:16 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 236NkGIa009020; Wed, 6 Apr 2022 23:46:16 GMT (envelope-from git) Date: Wed, 6 Apr 2022 23:46:16 GMT Message-Id: <202204062346.236NkGIa009020@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: 46adc7fad3c9 - main - axgbe: Remove unused variable in axgbe_msix_que. 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: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 46adc7fad3c92bbc3e9eca3b569578bc18dc6e84 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649288776; 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=QlFiJRdfIuOS/VnfCoRDSdg3ck+ThwiWhjmL1YaUhik=; b=wRz6k4THl+X4tHgd/Chk7trhJ0np4ipTYlcwDJRcVXSKRrSpd9Vq+4Hq0jmMkFNK1UQ9Ff DlLWAUsW+FDq4F2v12B1VgZc3zU5pbRgFydB1vnHUlsVWEElJW6yQJJak4/nP26TIYhKxd IyRoT+aeHlpqKONWkIPWHw6r9sUz3L4NBOf7jz6FFjMfAOdLkT6lVOHmiaV4m5KzTKUnE2 ImlalDB8zWsx5/gLGKVlRjhPFopfFAk84LAQRjZ+OWQcHxTAqv1SZrX2RzZgRRzk0D2SKT 7hMfifyFtkTm6XmelbfGQ9jAWOUJL5MsspY8l9iCqrO4JLaYUgEAVTmTmkIgRA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649288776; a=rsa-sha256; cv=none; b=LS2c4OiEhRaekl6eyGfiIHS8U+ComToeFJBTQhunp4CRKQuRWmu6GWFCNJM5AVPSYr63nv XAtyv/gPxkLM+Q/1GFyIdTKfI6fJqTgVspO4RehYK5BS+OrIeFp/9hnkEa6ziZxx6NVaOq TZaM2I2RCgAO5RxbuWyz9orwWvAQPuSAOpIsvQej5hX2qUuEaXjr3KPTV0fntiwfj05YLz eZ9I5a8yBm37xGYl06HoU4MTkNJUCuI1xBsfQq7LzwjwnA734alGsTf4q3dDzCxc5Hih8y OTCnWmC+DiAVgi0+hVVZ9d5Ium3BeKkR9geJTOogZmk2VjWtXs6k7npuAqf9GQ== 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=46adc7fad3c92bbc3e9eca3b569578bc18dc6e84 commit 46adc7fad3c92bbc3e9eca3b569578bc18dc6e84 Author: John Baldwin AuthorDate: 2022-04-06 23:45:28 +0000 Commit: John Baldwin CommitDate: 2022-04-06 23:45:28 +0000 axgbe: Remove unused variable in axgbe_msix_que. Keep the register read just in case though it seems possible it is not needed as the function later clears specific interrupts via a write to the same register. --- sys/dev/axgbe/if_axgbe_pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/axgbe/if_axgbe_pci.c b/sys/dev/axgbe/if_axgbe_pci.c index aa880d9747ee..9ac640bac846 100644 --- a/sys/dev/axgbe/if_axgbe_pci.c +++ b/sys/dev/axgbe/if_axgbe_pci.c @@ -2042,7 +2042,7 @@ axgbe_msix_que(void *arg) { struct xgbe_channel *channel = (struct xgbe_channel *)arg; struct xgbe_prv_data *pdata = channel->pdata; - unsigned int dma_ch_isr, dma_status; + unsigned int dma_status; axgbe_printf(1, "%s: Channel: %d SR 0x%04x DSR 0x%04x IER:0x%04x D_ISR:0x%04x M_ISR:0x%04x\n", __func__, channel->queue_index, @@ -2052,7 +2052,7 @@ axgbe_msix_que(void *arg) XGMAC_IOREAD(pdata, DMA_ISR), XGMAC_IOREAD(pdata, MAC_ISR)); - dma_ch_isr = XGMAC_DMA_IOREAD(channel, DMA_CH_SR); + (void)XGMAC_DMA_IOREAD(channel, DMA_CH_SR); /* Disable Tx and Rx channel interrupts */ xgbe_disable_rx_tx_int(pdata, channel);