[PATCH 19/30] return statement cleanup - kill pointless parenthesesin fs/xfs/linux-2.6/xfs_buf.c

From: Jesper Juhl
Date: Wed Dec 15 2004 - 21:07:28 EST



This patch removes pointless parentheses from return statements in
fs/xfs/linux-2.6/xfs_buf.c

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

--- linux-2.6.10-rc3-bk8-orig/fs/xfs/linux-2.6/xfs_buf.c 2004-10-18 23:53:07.000000000 +0200
+++ linux-2.6.10-rc3-bk8/fs/xfs/linux-2.6/xfs_buf.c 2004-12-15 23:47:26.000000000 +0100
@@ -538,7 +538,7 @@ _pagebuf_find( /* find buffer for blo
}

spin_unlock(&h->pb_hash_lock);
- return (new_pb);
+ return new_pb;

found:
spin_unlock(&h->pb_hash_lock);
@@ -564,7 +564,7 @@ found:

pagebuf_rele(pb);
XFS_STATS_INC(pb_busy_locked);
- return (NULL);
+ return NULL;
}
} else {
/* trylock worked */
@@ -575,7 +575,7 @@ found:
pb->pb_flags &= PBF_MAPPED;
PB_TRACE(pb, "got_lock", 0);
XFS_STATS_INC(pb_get_locked);
- return (pb);
+ return pb;
}


@@ -941,7 +941,7 @@ pagebuf_cond_lock( /* lock buffer, if
PB_SET_OWNER(pb);
}
PB_TRACE(pb, "cond_lock", (long)locked);
- return(locked ? 0 : -EBUSY);
+ return locked ? 0 : -EBUSY;
}

/*
@@ -953,7 +953,7 @@ int
pagebuf_lock_value(
xfs_buf_t *pb)
{
- return(atomic_read(&pb->pb_sema.count));
+ return atomic_read(&pb->pb_sema.count);
}

/*



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