rds: simplify a warning message
Subsystems (3)
PATCH 1/1 rds: simplify a warning message
From: Cong Wang <[email protected]>
Cc David S. Miller <[email protected]>
Cc Venkat Venkatsubra <[email protected]>
Signed-off-by Cong Wang <[email protected]>
---
net/rds/message.c +1 -4
@@ -82,10 +82,7 @@ static void rds_message_purge(struct rds_message *rm)void rds_message_put (struct rds_message *rm) {rdsdebug ("put rm %p ref %d\n" , rm,atomic_read (&rm->m_refcount)); -if (atomic_read (&rm->m_refcount) ==0 ) { -printk (KERN_CRIT "danger refcount zero on %p\n" , rm); -WARN_ON (1 ); - } +WARN (!atomic_read (&rm->m_refcount),"danger refcount zero on %p\n" , rm);if (atomic_dec_and_test (&rm->m_refcount)) {BUG_ON (!list_empty (&rm->m_sock_item));BUG_ON (!list_empty (&rm->m_conn_item));
From: Cong Wang <[email protected]>
Date: Mon, 4 Mar 2013 14:57:18 +0800
Quoted 6 lines
From: Cong Wang <[email protected]>
Cc David S. Miller <[email protected]>Cc Venkat Venkatsubra <[email protected]>Signed-off-by Cong Wang <[email protected]>
Applied.