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

From: Jesper Juhl
Date: Wed Dec 15 2004 - 19:56:10 EST



This patch removes pointless parentheses from return statements in
fs/xfs/xfs_trans_item.c

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

--- linux-2.6.10-rc3-bk8-orig/fs/xfs/xfs_trans_item.c 2004-10-18 23:53:21.000000000 +0200
+++ linux-2.6.10-rc3-bk8/fs/xfs/xfs_trans_item.c 2004-12-15 23:45:47.000000000 +0100
@@ -93,7 +93,7 @@ xfs_trans_add_item(xfs_trans_t *tp, xfs_
lidp->lid_size = 0;
lip->li_desc = lidp;
lip->li_mountp = tp->t_mountp;
- return (lidp);
+ return lidp;
}

/*
@@ -134,7 +134,7 @@ xfs_trans_add_item(xfs_trans_t *tp, xfs_
lidp->lid_size = 0;
lip->li_desc = lidp;
lip->li_mountp = tp->t_mountp;
- return (lidp);
+ return lidp;
}

/*
@@ -195,7 +195,7 @@ xfs_trans_find_item(xfs_trans_t *tp, xfs
{
ASSERT(lip->li_desc != NULL);

- return (lip->li_desc);
+ return lip->li_desc;
}


@@ -234,10 +234,10 @@ xfs_trans_first_item(xfs_trans_t *tp)
continue;
}

- return (XFS_LIC_SLOT(licp, i));
+ return XFS_LIC_SLOT(licp, i);
}
cmn_err(CE_WARN, "xfs_trans_first_item() -- no first item");
- return(NULL);
+ return NULL;
}


@@ -267,7 +267,7 @@ xfs_trans_next_item(xfs_trans_t *tp, xfs
continue;
}

- return (XFS_LIC_SLOT(licp, i));
+ return XFS_LIC_SLOT(licp, i);
}

/*
@@ -276,7 +276,7 @@ xfs_trans_next_item(xfs_trans_t *tp, xfs
* If there is no next chunk, return NULL.
*/
if (licp->lic_next == NULL) {
- return (NULL);
+ return NULL;
}

licp = licp->lic_next;
@@ -286,7 +286,7 @@ xfs_trans_next_item(xfs_trans_t *tp, xfs
continue;
}

- return (XFS_LIC_SLOT(licp, i));
+ return XFS_LIC_SLOT(licp, i);
}
ASSERT(0);
/* NOTREACHED */
@@ -440,7 +440,7 @@ xfs_trans_unlock_chunk(
}
}

- return (freed);
+ return freed;
}


@@ -493,7 +493,7 @@ xfs_trans_add_busy(xfs_trans_t *tp, xfs_
*/
lbsp->lbc_ag = ag;
lbsp->lbc_idx = idx;
- return (lbsp);
+ return lbsp;
}

/*
@@ -527,7 +527,7 @@ xfs_trans_add_busy(xfs_trans_t *tp, xfs_
tp->t_busy_free--;
lbsp->lbc_ag = ag;
lbsp->lbc_idx = idx;
- return (lbsp);
+ return lbsp;
}




-
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/