diff --git a/net/rds/send.c b/net/rds/send.c index fe5264b9d4b3..f7a1b698c61d 100644 --- a/net/rds/send.c +++ b/net/rds/send.c @@ -665,7 +665,7 @@ static void rds_send_remove_from_sock(struct list_head *messages, int status) unlock_and_drop: spin_unlock_irqrestore(&rm->m_rs_lock, flags); rds_message_put(rm); - if (was_on_sock && rm) + if (/*was_on_sock &&*/ rm) rds_message_put(rm); }