From: Steven Whitehouse Date: Mon, 10 Jul 2006 15:19:29 +0000 (-0400) Subject: [GFS2] Remove unused code from dir.c X-Git-Tag: upstream/snapshot3+hdmi~37094^2~146 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dc3e130a08996e2b56381365a5ac7bb1ce2a9f47;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git [GFS2] Remove unused code from dir.c Remove a couple of commented out, and unused lines of code. Signed-off-by: Steven Whitehouse --- diff --git a/fs/gfs2/dir.c b/fs/gfs2/dir.c index b035388..13d3709 100644 --- a/fs/gfs2/dir.c +++ b/fs/gfs2/dir.c @@ -78,13 +78,8 @@ #define IS_LEAF 1 /* Hashed (leaf) directory */ #define IS_DINODE 2 /* Linear (stuffed dinode block) directory */ -#if 1 #define gfs2_disk_hash2offset(h) (((uint64_t)(h)) >> 1) #define gfs2_dir_offset2hash(p) ((uint32_t)(((uint64_t)(p)) << 1)) -#else -#define gfs2_disk_hash2offset(h) (((uint64_t)(h))) -#define gfs2_dir_offset2hash(p) ((uint32_t)(((uint64_t)(p)))) -#endif typedef int (*leaf_call_t) (struct gfs2_inode *dip, uint32_t index, uint32_t len, uint64_t leaf_no,