From nobody Fri Apr 08 00:03:24 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 76E351A87613; Fri, 8 Apr 2022 00:03:26 +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 4KZJP93k4Rz4l0S; Fri, 8 Apr 2022 00:03:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649376205; 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=tQ2Ys8hdfoy2gzbZitviH5AETHSlZe2ArrJacedp5m8=; b=egb2B7QXw/bnwr+qWmXv/TeGqHpZ1N+zPoudd87PKcOkZRQFrGV3/Slw3xEwJfk9gRcOEG P55jaRDBGVyOpQLTOjnYpDMYlYrczAye1hVAf3GSfs+yJJOE3BXyFs3vb0RJukGMhKX5xc L2OxgU/dazNwiN3tZ3De8/ZJLxodWmkqj9lyTB6pXQ97NA9yMtHFc8Q7o3ZNsEaYaVv+Ej cQ6eq0STzCXFbKJEF5y0/oqsIwjoj4odbmpTuT9rIZHMD+idtjYSczjptv1F/PzsdPVK7s fskMf5QVYqfNC29qCmdoh8L5FfZBI/1H7S5Vuj+PqqTsshl0xXqy2ZDGjQZZZg== 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 B1B241A340; Fri, 8 Apr 2022 00:03:24 +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 23803OeI086316; Fri, 8 Apr 2022 00:03:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23803O3c086315; Fri, 8 Apr 2022 00:03:24 GMT (envelope-from git) Date: Fri, 8 Apr 2022 00:03:24 GMT Message-Id: <202204080003.23803O3c086315@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: 395975eaed9e - main - nvdimm: Remove 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: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 395975eaed9eef3efd6cae79c443638183202f23 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649376205; 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=tQ2Ys8hdfoy2gzbZitviH5AETHSlZe2ArrJacedp5m8=; b=eZsKx4vZoNfzg/iMJNmLQsFDMogBsCATD6bljIhm3DynlYFW3QqaVYv62nL4RZ4VAk+p/y me7ktWKPa0p7u43+AALvV/HoF9Hg2sl55qhFeYfxvIQ+VKxyBG78RISVkPW48h87QOAbrO z8A2XsAoLxB1jyVNSIthKBuVuax5TD1+0gesjD2ZSYR1E3dMoMjSuI/QwDJCiJ5Te8GmlL nFZvSsHylSzOA+q8qUAPNhdy3k5aC7WpcxfhYHWi/HmeMn517q+f1RR7bjjKPHCwBJpX1+ 1vbCXSjbponPo/lRRvGHA7zp/9YtjbpkFk9058ZRsxSm8lSH7FICjA7KnPOPag== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649376205; a=rsa-sha256; cv=none; b=aF1dzqx4Kayxb6CPOMnb07kFStFMoayM18MHo5YFoy6DAiEfdPIzWoFQ6SVG9oFUd8H02H 3d4mAvvDN42/M55qKPxj15EjHfHDbfibpZGMnguOpJ4EhdcVbrm7THVbID9wypZJqiPUc+ iKk/GE5SfCQ2mejF2ha/wvW75W3onQqvpxUkAsTIW3ec0K7xsxbnEFg/LhnR69bW3FXH+t M/TBWKuJgf7fDmKsq6emP4FmNjyed/PjsUv/PA/dGSF47imwWZQwQp8UbEUjaRYeSXTesn GzTDkX2c68yPR+aUVuSjsANUHCQpcxGvV7WjZJfS1NQUA9nwLwbjQujgENiH0Q== 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=395975eaed9eef3efd6cae79c443638183202f23 commit 395975eaed9eef3efd6cae79c443638183202f23 Author: John Baldwin AuthorDate: 2022-04-08 00:01:27 +0000 Commit: John Baldwin CommitDate: 2022-04-08 00:01:27 +0000 nvdimm: Remove unused variable. --- sys/dev/nvdimm/nvdimm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/dev/nvdimm/nvdimm.c b/sys/dev/nvdimm/nvdimm.c index 0df894e4d9b6..3dde7e3fc037 100644 --- a/sys/dev/nvdimm/nvdimm.c +++ b/sys/dev/nvdimm/nvdimm.c @@ -246,7 +246,7 @@ static int read_labels(struct nvdimm_dev *nv) { struct nvdimm_label_index *indices, *index1; - size_t bitfield_size, index_size, num_labels; + size_t index_size, num_labels; int error, n; bool index_0_valid, index_1_valid; @@ -259,7 +259,6 @@ read_labels(struct nvdimm_dev *nv) } num_labels = (nv->label_area_size - index_size) / sizeof(struct nvdimm_label); - bitfield_size = roundup2(num_labels, 8) / 8; indices = malloc(2 * index_size, M_NVDIMM, M_WAITOK); index1 = (void *)((uint8_t *)indices + index_size); error = read_label_area(nv, (void *)indices, 0, 2 * index_size);