diff options
author | Andy Grover <andy.grover@oracle.com> | 2010-03-11 13:49:55 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-03-16 21:16:53 -0700 |
commit | 735f61e62611161588123930823af6e6a9fd5c2c (patch) | |
tree | d07e16026909daa692ddab9c7b0801cc418cb3bc /net/rds/iw_send.c | |
parent | 87faf3ccf1c939938600ab57c6c9ed5bd2e5f4cc (diff) | |
download | kernel-common-735f61e62611161588123930823af6e6a9fd5c2c.tar.gz kernel-common-735f61e62611161588123930823af6e6a9fd5c2c.tar.bz2 kernel-common-735f61e62611161588123930823af6e6a9fd5c2c.zip |
RDS: Do not BUG() on error returned from ib_post_send
BUGging on a runtime error code should be avoided. This
patch also eliminates all other BUG()s that have no real
reason to exist.
Signed-off-by: Andy Grover <andy.grover@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rds/iw_send.c')
-rw-r--r-- | net/rds/iw_send.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/rds/iw_send.c b/net/rds/iw_send.c index 1379e9d66a78..52182ff7519e 100644 --- a/net/rds/iw_send.c +++ b/net/rds/iw_send.c @@ -616,8 +616,7 @@ int rds_iw_xmit(struct rds_connection *conn, struct rds_message *rm, rds_iw_send_grab_credits(ic, 0, &posted, 1, RDS_MAX_ADV_CREDIT - adv_credits); adv_credits += posted; BUG_ON(adv_credits > 255); - } else if (ic->i_rm != rm) - BUG(); + } send = &ic->i_sends[pos]; first = send; |