[PATCH 9/30] return statement cleanup - kill pointless parenthesesin fs/xfs/xfs_trans_buf.c

From: Jesper Juhl
Date: Wed Dec 15 2004 - 19:47:07 EST



This patch removes pointless parentheses from return statements in

Signed-off-by: Jesper Juhl <juhl-lkml@xxxxxx>

--- linux-2.6.10-rc3-bk8-orig/fs/xfs/xfs_trans_buf.c 2004-10-18 23:53:10.000000000 +0200
+++ linux-2.6.10-rc3-bk8/fs/xfs/xfs_trans_buf.c 2004-12-15 22:50:18.000000000 +0100
@@ -89,7 +89,7 @@ xfs_trans_get_buf(xfs_trans_t *tp,
if (tp == NULL) {
bp = xfs_buf_get_flags(target_dev, blkno, len,
flags | BUF_BUSY);
- return(bp);
+ return bp;
}

/*
@@ -125,7 +125,7 @@ xfs_trans_get_buf(xfs_trans_t *tp,
bip->bli_recur++;
xfs_buftrace("TRANS GET RECUR", bp);
xfs_buf_item_trace("GET RECUR", bip);
- return (bp);
+ return bp;
}

/*
@@ -178,7 +178,7 @@ xfs_trans_get_buf(xfs_trans_t *tp,

xfs_buftrace("TRANS GET", bp);
xfs_buf_item_trace("GET", bip);
- return (bp);
+ return bp;
}

/*
@@ -202,7 +202,7 @@ xfs_trans_getsb(xfs_trans_t *tp,
* if tp is NULL.
*/
if (tp == NULL) {
- return (xfs_getsb(mp, flags));
+ return xfs_getsb(mp, flags);
}

/*
@@ -218,7 +218,7 @@ xfs_trans_getsb(xfs_trans_t *tp,
ASSERT(atomic_read(&bip->bli_refcount) > 0);
bip->bli_recur++;
xfs_buf_item_trace("GETSB RECUR", bip);
- return (bp);
+ return bp;
}

bp = xfs_getsb(mp, flags);
@@ -260,7 +260,7 @@ xfs_trans_getsb(xfs_trans_t *tp,
XFS_BUF_SET_FSPRIVATE2(bp, tp);

xfs_buf_item_trace("GETSB", bip);
- return (bp);
+ return bp;
}

#ifdef DEBUG



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/