Skip to content

Commit

Permalink
[XFS] Remove an unhelpful ifdef, the comment above the routine explains
Browse files Browse the repository at this point in the history
the purpose well enough here.

SGI-PV: 944821
SGI-Modid: xfs-linux:xfs-kern:24214a

Signed-off-by: Nathan Scott <nathans@sgi.com>
  • Loading branch information
Nathan Scott committed Nov 2, 2005
1 parent cfcbbbd commit 2b3b6d0
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions fs/xfs/xfs_da_btree.c
Original file line number Diff line number Diff line change
Expand Up @@ -1592,15 +1592,6 @@ xfs_da_hashname(const uchar_t *name, int namelen)
{
xfs_dahash_t hash;

#ifdef SLOWVERSION
/*
* This is the old one-byte-at-a-time version.
*/
for (hash = 0; namelen > 0; namelen--)
hash = *name++ ^ rol32(hash, 7);

return(hash);
#else
/*
* Do four characters at a time as long as we can.
*/
Expand All @@ -1619,12 +1610,9 @@ xfs_da_hashname(const uchar_t *name, int namelen)
return (name[0] << 7) ^ (name[1] << 0) ^ rol32(hash, 7 * 2);
case 1:
return (name[0] << 0) ^ rol32(hash, 7 * 1);
case 0:
default: /* case 0: */
return hash;
}
/* NOTREACHED */
#endif
return 0; /* keep gcc happy */
}

/*
Expand Down

0 comments on commit 2b3b6d0

Please sign in to comment.