Skip to contentSkip to conversation

xfs: Remove the left function variable from xfs_ialloc_get_rec()

PATCH Applied Jeff Liu 2 participants 2 messages Jun 24, 2013 – Jun 26, 2013 XFS filesystem

lore
Share & tools
lore

Jeff Liu

author
#0 lore raw

PATCH v2 1/1 xfs: Remove the left function variable from xfs_ialloc_get_rec()

From: Jie Liu <[email protected]>

This patch clean out the left function variable as it is useless to xfs_ialloc_get_rec().

---
 fs/xfs/xfs_ialloc.c |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
fs/xfs/xfs_ialloc.c +3 -4
index c8f5ae1..4345c53 100644
@@ -615,8 +615,7 @@ xfs_ialloc_get_rec(
 	struct xfs_btree_cur	*cur,
 	xfs_agino_t		agino,
 	xfs_inobt_rec_incore_t	*rec,
-	int			*done,
-	int			left)
+	int			*done)
 {
 	int                     error;
 	int			i;
@@ -724,12 +723,12 @@ xfs_dialloc_ag(
 		    pag->pagl_leftrec != NULLAGINO &&
 		    pag->pagl_rightrec != NULLAGINO) {
 			error = xfs_ialloc_get_rec(tcur, pag->pagl_leftrec,
-						   &trec, &doneleft, 1);
+						   &trec, &doneleft);
 			if (error)
 				goto error1;
 
 			error = xfs_ialloc_get_rec(cur, pag->pagl_rightrec,
-						   &rec, &doneright, 0);
+						   &rec, &doneright);
 			if (error)
 				goto error1;
 		} else {
Signature · 6 lines
1.7.9.5

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs