Skip to content

Commit 4348270

Browse files
MiaoheLinrafaeljw
authored andcommitted
ACPI: APEI: GHES: Remove unused ghes_estatus_pool_size_request()
ghes_estatus_pool_size_request() is unused now, so remove it. Signed-off-by: Miaohe Lin <[email protected]> [ rjw: Subject and changelog edits ] Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 9561de3 commit 4348270

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/acpi/apei/ghes.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@ struct ghes_vendor_record_entry {
152152
};
153153

154154
static struct gen_pool *ghes_estatus_pool;
155-
static unsigned long ghes_estatus_pool_size_request;
156155

157156
static struct ghes_estatus_cache __rcu *ghes_estatus_caches[GHES_ESTATUS_CACHES_SIZE];
158157
static atomic_t ghes_estatus_cache_alloced;
@@ -191,7 +190,6 @@ int ghes_estatus_pool_init(unsigned int num_ghes)
191190
len = GHES_ESTATUS_CACHE_AVG_SIZE * GHES_ESTATUS_CACHE_ALLOCED_MAX;
192191
len += (num_ghes * GHES_ESOURCE_PREALLOC_MAX_SIZE);
193192

194-
ghes_estatus_pool_size_request = PAGE_ALIGN(len);
195193
addr = (unsigned long)vmalloc(PAGE_ALIGN(len));
196194
if (!addr)
197195
goto err_pool_alloc;

0 commit comments

Comments
 (0)