git: 395975eaed9e - main - nvdimm: Remove unused variable.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 08 Apr 2022 00:03:24 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=395975eaed9eef3efd6cae79c443638183202f23 commit 395975eaed9eef3efd6cae79c443638183202f23 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-04-08 00:01:27 +0000 Commit: John Baldwin <jhb@FreeBSD.org> 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);