Minor code cleanup: remove a variable that was assigned to but never

subsequently referenced.

Found by: Coverity
Fixed by: Sean Chittenden
This commit is contained in:
Neil Conway 2005-02-23 23:27:54 +00:00
parent 3350b3740e
commit 406a942820
1 changed files with 2 additions and 3 deletions

View File

@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/catalog/pg_largeobject.c,v 1.22 2004/12/31 21:59:38 pgsql Exp $
* $PostgreSQL: pgsql/src/backend/catalog/pg_largeobject.c,v 1.23 2005/02/23 23:27:54 neilc Exp $
*
*-------------------------------------------------------------------------
*/
@ -114,7 +114,6 @@ LargeObjectExists(Oid loid)
Relation pg_largeobject;
ScanKeyData skey[1];
SysScanDesc sd;
HeapTuple tuple;
/*
* See if we can find any tuples belonging to the specified LO
@ -129,7 +128,7 @@ LargeObjectExists(Oid loid)
sd = systable_beginscan(pg_largeobject, LargeObjectLOidPNIndex, true,
SnapshotNow, 1, skey);
if ((tuple = systable_getnext(sd)) != NULL)
if (systable_getnext(sd) != NULL)
retval = true;
systable_endscan(sd);