aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCong Wang2013-03-03 14:57:18 -0600
committerDavid S. Miller2013-03-04 13:12:07 -0600
commit7dac1b514a00817ddb43704068c14ffd8b8fba19 (patch)
tree2d526dced6203f4443c4009616f90188c7364594
parentacac8406cd523a3afbd6c6db31e9f763644bf6ba (diff)
downloadam43-linux-kernel-7dac1b514a00817ddb43704068c14ffd8b8fba19.tar.gz
am43-linux-kernel-7dac1b514a00817ddb43704068c14ffd8b8fba19.tar.xz
am43-linux-kernel-7dac1b514a00817ddb43704068c14ffd8b8fba19.zip
rds: simplify a warning message
Cc: David S. Miller <davem@davemloft.net> Cc: Venkat Venkatsubra <venkat.x.venkatsubra@oracle.com> Signed-off-by: Cong Wang <amwang@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/rds/message.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/net/rds/message.c b/net/rds/message.c
index aff589cc022..aba232f9f30 100644
--- a/net/rds/message.c
+++ b/net/rds/message.c
@@ -82,10 +82,7 @@ static void rds_message_purge(struct rds_message *rm)
82void rds_message_put(struct rds_message *rm) 82void rds_message_put(struct rds_message *rm)
83{ 83{
84 rdsdebug("put rm %p ref %d\n", rm, atomic_read(&rm->m_refcount)); 84 rdsdebug("put rm %p ref %d\n", rm, atomic_read(&rm->m_refcount));
85 if (atomic_read(&rm->m_refcount) == 0) { 85 WARN(!atomic_read(&rm->m_refcount), "danger refcount zero on %p\n", rm);
86printk(KERN_CRIT "danger refcount zero on %p\n", rm);
87WARN_ON(1);
88 }
89 if (atomic_dec_and_test(&rm->m_refcount)) { 86 if (atomic_dec_and_test(&rm->m_refcount)) {
90 BUG_ON(!list_empty(&rm->m_sock_item)); 87 BUG_ON(!list_empty(&rm->m_sock_item));
91 BUG_ON(!list_empty(&rm->m_conn_item)); 88 BUG_ON(!list_empty(&rm->m_conn_item));