From nobody Fri Jun 09 23:21:51 2023 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 4QdHCh1Wf1z4bN8p; Fri, 9 Jun 2023 23:21:52 +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 4QdHCh16qjz3q6B; Fri, 9 Jun 2023 23:21:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686352912; 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=p1Qk+bklIQnP6/JArkR34hf5dKS0uKym3WRw/6Jq4mc=; b=oXnxGf/mUHNG87FXiV2LkuhWLzJ0RJ29MJj/2sKzPB61SGp2z/R+4jZXGnCd4Yf+KakZ7x fEMw5jak/JmK/s4k2rFhHSe1FW1s2r/YRwqn0JcpCnQfYX0w9ApzZYhzHHMurpUGBSRLER 64EwLqiD+oD+UEWUFcJf6y8wheQhytJvcVjAuZXnM85RPh+7U3d/Nb8agcYcoL1sZIW8sl ds0yc+XcXcjSXYW1e8IWhZOKrpI1RyqFxmtRCfGXEouij4PMJkg/Uqgb7Kq5DgxerLfr+z 1EAXMPtztFf81Jk1W1tORfVDmeh76kuzvH2KmvXTy2228sCWxESuwG/RB7pmcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686352912; 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=p1Qk+bklIQnP6/JArkR34hf5dKS0uKym3WRw/6Jq4mc=; b=tplXnSekO7NkEI/bzh7s+yhRpxmJsI5mDJRefBYKvfRtiGkkxxZfU00f6AdI0cLv+UMY7D Ootia1Gwnewxrwm4fxPcOxrBYw1nM3fCNJhatcjdX1WhiwxaQ+1ROWBKFr4G/e/29CO242 lNRjBud0wpzu0gH3iO2zA/HTPq4m3wvaYF6KG6p/GlSS7AVbtz/08h0p8RrKcw43vnhqEE PVJ0fRkW1LemmnQbGE/RDbRQDh4sQKFpootvNMpAuwvJQ4cKU3Iok9Df6N436xEn8AyJ7S iHzAunQUa3+1+JgkXb/yv1Y9EIe9PjHRr1YneHkrdnFXsXInCbs6F16xtcvdVg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1686352912; a=rsa-sha256; cv=none; b=Kzl/mbUSEh00hidy1yIsfYFgAQco3nSDSXTd++2DkARlpCS3bIXjWwSCOz2hP/Ran1RJnt g4psQ/R8zZPxVdDZmIXhKhDkztEtq8Kp04kNTyRjQT9ppsHS8SqxvMWKZYxSLJWw6ewxNQ Mrr7Qo59yJUklpUXyZH/CV9mMzlLjcOH+AThFtZwo2U0IFPChIpZqk9ZuiE5GtqrIM6yMk GRUeLPJcJojlO+L1yXOzRcztPGaeO6JKMs5GFOJ02M4aJ57cbdbRqR3n09NIpyxF5WIZQX rYDoC97uS85DTMKRnarNFMTkPSY6Ei+6jiqX71tKug0c1N+RvYw5EWgJSm0KvQ== 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 4QdHCh0BsPztlW; Fri, 9 Jun 2023 23:21:52 +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 359NLpsc018725; Fri, 9 Jun 2023 23:21:51 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 359NLpje018724; Fri, 9 Jun 2023 23:21:51 GMT (envelope-from git) Date: Fri, 9 Jun 2023 23:21:51 GMT Message-Id: <202306092321.359NLpje018724@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: 17dce737e305 - main - mvs: Eliminate unused variable. 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: 17dce737e305891c88e2410469cd23d8cfad1ca3 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=17dce737e305891c88e2410469cd23d8cfad1ca3 commit 17dce737e305891c88e2410469cd23d8cfad1ca3 Author: Warner Losh AuthorDate: 2023-06-09 23:18:54 +0000 Commit: Warner Losh CommitDate: 2023-06-09 23:21:40 +0000 mvs: Eliminate unused variable. ccim is unused. Just remove it. PR: 271920 Sponsored by: Netflix --- sys/dev/mvs/mvs_soc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/dev/mvs/mvs_soc.c b/sys/dev/mvs/mvs_soc.c index e24230375818..dd4cf72cc050 100644 --- a/sys/dev/mvs/mvs_soc.c +++ b/sys/dev/mvs/mvs_soc.c @@ -208,7 +208,7 @@ static int mvs_ctlr_setup(device_t dev) { struct mvs_controller *ctlr = device_get_softc(dev); - int ccc = ctlr->ccc, cccc = ctlr->cccc, ccim = 0; + int ccc = ctlr->ccc, cccc = ctlr->cccc; /* Mask chip interrupts */ ATA_OUTL(ctlr->r_mem, CHIP_SOC_MIM, 0x00000000); @@ -225,8 +225,6 @@ mvs_ctlr_setup(device_t dev) ccc *= 150; ATA_OUTL(ctlr->r_mem, HC_ICT, cccc); ATA_OUTL(ctlr->r_mem, HC_ITT, ccc); - if (ccc) - ccim |= IC_HC0_COAL_DONE; /* Enable chip interrupts */ ctlr->gmim = ((ccc ? IC_HC0_COAL_DONE : (IC_DONE_HC0 & CHIP_SOC_HC0_MASK(ctlr->channels))) |