Commit 21286230 authored by Dave Jones's avatar Dave Jones Committed by Linus Torvalds

[PATCH] Remove useless assertions from reiserfs

parent c03263c9
......@@ -90,10 +90,6 @@ u32 keyed_hash(const signed char *msg, int len)
if (len >= 12)
{
//assert(len < 16);
if (len >= 16)
BUG();
a = (u32)msg[ 0] |
(u32)msg[ 1] << 8 |
(u32)msg[ 2] << 16|
......@@ -116,9 +112,6 @@ u32 keyed_hash(const signed char *msg, int len)
}
else if (len >= 8)
{
//assert(len < 12);
if (len >= 12)
BUG();
a = (u32)msg[ 0] |
(u32)msg[ 1] << 8 |
(u32)msg[ 2] << 16|
......@@ -137,9 +130,6 @@ u32 keyed_hash(const signed char *msg, int len)
}
else if (len >= 4)
{
//assert(len < 8);
if (len >= 8)
BUG();
a = (u32)msg[ 0] |
(u32)msg[ 1] << 8 |
(u32)msg[ 2] << 16|
......@@ -154,9 +144,6 @@ u32 keyed_hash(const signed char *msg, int len)
}
else
{
//assert(len < 4);
if (len >= 4)
BUG();
a = b = c = d = pad;
for(i = 0; i < len; i++)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment