summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut2024-11-14 08:30:14 +0000
committerPeter Eisentraut2024-11-14 08:30:14 +0000
commita274bbb1b3655ae122bba792c8fb9ae8f0ac5b21 (patch)
treecc4988ced6cc7352a755f0c6ca1b325a3ee66a77
parent13e3796c906befb18c45d4361b2ca0c4f55845c1 (diff)
Remove a useless cast to (void *) in hash_search() call
This pattern was previously cleaned up in 54a177a948b, but a new instance snuck in around the same time in 31966b151e6.
-rw-r--r--src/backend/storage/buffer/localbuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/storage/buffer/localbuf.c b/src/backend/storage/buffer/localbuf.c
index 8da7dd6c98a..6fd1a6418d2 100644
--- a/src/backend/storage/buffer/localbuf.c
+++ b/src/backend/storage/buffer/localbuf.c
@@ -379,7 +379,7 @@ ExtendBufferedRelLocal(BufferManagerRelation bmr,
InitBufferTag(&tag, &bmr.smgr->smgr_rlocator.locator, fork, first_block + i);
hresult = (LocalBufferLookupEnt *)
- hash_search(LocalBufHash, (void *) &tag, HASH_ENTER, &found);
+ hash_search(LocalBufHash, &tag, HASH_ENTER, &found);
if (found)
{
BufferDesc *existing_hdr;