1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-30 21:42:05 +03:00

Remove a useless cast to (void *) in hash_search() call

This pattern was previously cleaned up in 54a177a948, but a new
instance snuck in around the same time in 31966b151e.
This commit is contained in:
Peter Eisentraut
2024-11-14 09:30:14 +01:00
parent 13e3796c90
commit a274bbb1b3

View File

@ -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;