From nobody Tue Dec 14 23:53:28 2021 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 E0E1B18E3F2C; Tue, 14 Dec 2021 23:53:28 +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 4JDFZJ43T5z3CQt; Tue, 14 Dec 2021 23:53:28 +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 6B5961221B; Tue, 14 Dec 2021 23:53:28 +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 1BENrSIG070776; Tue, 14 Dec 2021 23:53:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BENrSql070775; Tue, 14 Dec 2021 23:53:28 GMT (envelope-from git) Date: Tue, 14 Dec 2021 23:53:28 GMT Message-Id: <202112142353.1BENrSql070775@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 2426adf4f432 - main - ata-promise: kill lenght, it's set but never used 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: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2426adf4f4327bcb41925846024ba8127527e36a Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639526008; 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=gmz/PM18dSPwD7acIwPvvONjX+ZvjcKtOyDPb5QEPa8=; b=HJSLunq2YCWVBZrWQZTJpfH0zoIXzxLs0Tq1FzbqNET07WVwbxQoR7DJjWJNpCH/qNoYoL wqB5/sQXgnYWGMHro7jal+cS9dVog+3YDq6mnqsMoInwvMjwS2/i+fIWOas+sQ6863vhaD y2Yk758JjcPjm31n0Eb7BdSDiGVxvX+3u3PHwAr1n3b+cxgGBlLcgcFpi51vqsdTd1PU3Q tL4KkOfNyEkZfGBbumRiyQH+ZCaQ41lEYHKpGXgrEbhVeumwR/KvtF77hfxW7nDVQiW4yn Txe+XRy0sxj3rRBcqgYMzoKjYrf6cUwiDWpU9A3Fn9IcaVv3TBbP0Aed1X0RqQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639526008; a=rsa-sha256; cv=none; b=FBWeEGC0NXbV9QZ0Mx6jkxe8Czz67HMd+aBArgXQz7LbQK3dcOLxkUGhkRZjeLgn/drToD q4x4QD3hHfINGmrSoSXt8Ti0DZ32+7k3sbXOE9R+vlOdpyJoy0rZe/UgRW0feKvpNagg3b ugGgLgUb4i3qs9MoMBRo6n4XJeyJU/Z4OaQs68qIYIe0sWfSKVFsDaAQ+BTXt7IdInj/bj hH2iDxajRJ4h2O/uoFB0Hu6QqsxnjnRIJUHbwtgprlBUkHA9qLFoUJLzPx9zKzvteC2Sx2 QKfV8I9ZWntDzoE1sJHl4L5H7J4geUa3zjZknkj8pXmUW5dKCEPr5nD7Uwb94Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=2426adf4f4327bcb41925846024ba8127527e36a commit 2426adf4f4327bcb41925846024ba8127527e36a Author: Warner Losh AuthorDate: 2021-12-14 23:49:38 +0000 Commit: Warner Losh CommitDate: 2021-12-14 23:53:09 +0000 ata-promise: kill lenght, it's set but never used Sponsored by: Netflix --- sys/dev/ata/chipsets/ata-promise.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/dev/ata/chipsets/ata-promise.c b/sys/dev/ata/chipsets/ata-promise.c index cdda3df2c332..6ebbc5cd378a 100644 --- a/sys/dev/ata/chipsets/ata-promise.c +++ b/sys/dev/ata/chipsets/ata-promise.c @@ -1086,7 +1086,7 @@ ata_promise_sx4_command(struct ata_request *request) struct ata_dma_prdentry *prd; caddr_t window = rman_get_virtual(ctlr->r_res1); u_int32_t *wordp; - int i, idx, length = 0; + int i, idx; /* XXX SOS add ATAPI commands support later */ switch (request->u.ata.command) { @@ -1134,7 +1134,6 @@ ata_promise_sx4_command(struct ata_request *request) do { wordp[idx++] = prd[i].addr; wordp[idx++] = prd[i].count; - length += (prd[i].count & ~ATA_DMA_EOT); } while (!(prd[i++].count & ATA_DMA_EOT)); wordp = (u_int32_t *)