From nobody Tue Apr 05 04:32:03 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 9B7E31A8FD90; Tue, 5 Apr 2022 04:32: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 4KXZVX4MkMz4g4y; Tue, 5 Apr 2022 04:32:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649133124; 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=KwDzci0hKp9YkpwgZRzZWZ5NfDByCRYYfMkvmGDa41c=; b=qaRjgM1XMHBAZhwksaw2Rer5SpGIZD9vOnMepbPOcgi+U++Wd6A+sX3eDcM0yQEK7Lz+tR 0MERfq0OK0OofBgaxxeX0zYl3wN4n3VSlSopP07z8oIUn7MJDO2JIgK1a1lkc433eyEDUn Bo77ZN4zCU3tfbiBq4pw+9JZaoRqVjoKvRV6deOfaRj3zlH0SrWSw3BZsuKFa0Zaua2mbt AhCCWY/5g8NYkLlN+PYr2dY/YnzfoIcBPzTMCWqdqAChsyDCGIpANOQUViImi6aGr14Cmj Pfd9RR02N6t8LRw9HRJ963uG0MUHgAIH5JJSwjpsjNy8Sw2PXX/HTAlYnlZRBA== 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 EA9FC1FDAC; Tue, 5 Apr 2022 04:32:03 +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 2354W3e7008503; Tue, 5 Apr 2022 04:32:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2354W3HC008502; Tue, 5 Apr 2022 04:32:03 GMT (envelope-from git) Date: Tue, 5 Apr 2022 04:32:03 GMT Message-Id: <202204050432.2354W3HC008502@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: b20f0f724734 - main - mv_rtc_attach: eliminate write only unit 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: b20f0f724734b8dddde2957b39c92720a63430ac Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649133124; 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=KwDzci0hKp9YkpwgZRzZWZ5NfDByCRYYfMkvmGDa41c=; b=L8yT17fWAhtiU5DBQ1ASt/nSSMFw0dklTTfn2S+pTwuCl74mt9rmB0OhIjquRd4KGb0YZM CMBn25laroC62LLayvw6y3Isq2GiYCRWtXdFZBsSvapKsCfErxalxax683jcgG84IuPF4/ v77r587iFJjzQ21d0E3nC6lejtF2yqT/7DBRat5HvidsfI/1g5H3g2PhfW3cjCEAwH9s02 2KKSyG6pxfHYJWeAipg9g8/4z13vwbICaz8XwjVh1GjdX5WLnmB8I4OpBcEeiyh5tcMFjL 14FlPa+4YKL6mpQWhUQOtxS7COCZCSDIsPRzcOO42GQBwjTPouH/SN/e1wWitw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649133124; a=rsa-sha256; cv=none; b=fhH2lXlSvdkXsayoePU0UMRszXQn59kb4ZzFpTQ4S9A4h0TIlNkJhBFgkcE6llPY/INtEP 0EUpT7gLIAntcKF7PyGD2EusF8SgDSlI/pNHbZron+G/V9pYdDLHXNqB7vidsBV9o/WrUY wPZhXiA5VKYdO0CwWPn9PgZ0hpqV3vB0nh/+0Wrcwzg+p0npUKYDBS7ta/s0N97HJmYv9y i5FYRaBnwkTeEBvhjGSbFywxapitWUIyjp6EuEkGrCIR5gZks4S31ISQA1Pl4mID7/ZOeI KaklBjhT0Ce+MrMVzk+H18PfkKZhB1lTzLhZxsPIIZmMoGyfHCJHJJFp18C1BQ== 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=b20f0f724734b8dddde2957b39c92720a63430ac commit b20f0f724734b8dddde2957b39c92720a63430ac Author: Warner Losh AuthorDate: 2022-04-04 23:55:30 +0000 Commit: Warner Losh CommitDate: 2022-04-05 04:29:13 +0000 mv_rtc_attach: eliminate write only unit variable Sponsored by: Netflix --- sys/arm/mv/armada38x/armada38x_rtc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/arm/mv/armada38x/armada38x_rtc.c b/sys/arm/mv/armada38x/armada38x_rtc.c index ff89094194a7..d6f2073b414a 100644 --- a/sys/arm/mv/armada38x/armada38x_rtc.c +++ b/sys/arm/mv/armada38x/armada38x_rtc.c @@ -208,9 +208,7 @@ static int mv_rtc_attach(device_t dev) { struct mv_rtc_softc *sc; - int unit, ret; - - unit = device_get_unit(dev); + int ret; sc = device_get_softc(dev); sc->dev = dev;