diff options
author | Neil Conway <neilc@samurai.com> | 2006-01-11 08:43:13 +0000 |
---|---|---|
committer | Neil Conway <neilc@samurai.com> | 2006-01-11 08:43:13 +0000 |
commit | fb627b76ccc4c7074e37b6b94155864f6cbd1b23 (patch) | |
tree | a8e7b008b4f6c2a2188641937e5b984f40b60104 /src/backend/access/transam/xlogutils.c | |
parent | 762bcbdba2a2519b01b17b2c2b28f36e5ee9ea25 (diff) | |
download | postgresql-fb627b76ccc4c7074e37b6b94155864f6cbd1b23.tar.gz postgresql-fb627b76ccc4c7074e37b6b94155864f6cbd1b23.zip |
Cosmetic code cleanup: fix a bunch of places that used "return (expr);"
rather than "return expr;" -- the latter style is used in most of the
tree. I kept the parentheses when they were necessary or useful because
the return expression was complex.
Diffstat (limited to 'src/backend/access/transam/xlogutils.c')
-rw-r--r-- | src/backend/access/transam/xlogutils.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/backend/access/transam/xlogutils.c b/src/backend/access/transam/xlogutils.c index 485aa52474d..25b5f65b416 100644 --- a/src/backend/access/transam/xlogutils.c +++ b/src/backend/access/transam/xlogutils.c @@ -11,7 +11,7 @@ * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/backend/access/transam/xlogutils.c,v 1.39 2005/10/15 02:49:11 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/access/transam/xlogutils.c,v 1.40 2006/01/11 08:43:12 neilc Exp $ * *------------------------------------------------------------------------- */ @@ -51,13 +51,13 @@ XLogReadBuffer(bool extend, Relation reln, BlockNumber blkno) } if (buffer != InvalidBuffer) LockBuffer(buffer, BUFFER_LOCK_EXCLUSIVE); - return (buffer); + return buffer; } buffer = ReadBuffer(reln, blkno); if (buffer != InvalidBuffer) LockBuffer(buffer, BUFFER_LOCK_EXCLUSIVE); - return (buffer); + return buffer; } @@ -141,7 +141,7 @@ _xl_new_reldesc(void) if (_xlast < _xlcnt) { _xlrelarr[_xlast].reldata.rd_rel = &(_xlpgcarr[_xlast]); - return (&(_xlrelarr[_xlast])); + return &(_xlrelarr[_xlast]); } /* reuse */ @@ -150,7 +150,7 @@ _xl_new_reldesc(void) _xl_remove_hash_entry(res); _xlast--; - return (res); + return res; } @@ -249,7 +249,7 @@ XLogOpenRelation(RelFileNode rnode) _xlrelarr[0].lessRecently = res; res->lessRecently->moreRecently = res; - return (&(res->reldata)); + return &(res->reldata); } /* |