Skip to content

Commit a274bbb

Browse files
committed
Remove a useless cast to (void *) in hash_search() call
This pattern was previously cleaned up in 54a177a, but a new instance snuck in around the same time in 31966b1.
1 parent 13e3796 commit a274bbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/storage/buffer/localbuf.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ ExtendBufferedRelLocal(BufferManagerRelation bmr,
379379
InitBufferTag(&tag, &bmr.smgr->smgr_rlocator.locator, fork, first_block + i);
380380

381381
hresult = (LocalBufferLookupEnt *)
382-
hash_search(LocalBufHash, (void *) &tag, HASH_ENTER, &found);
382+
hash_search(LocalBufHash, &tag, HASH_ENTER, &found);
383383
if (found)
384384
{
385385
BufferDesc *existing_hdr;

0 commit comments

Comments
 (0)