Skip to contentSkip to conversation

rds: cleanup: remove unneeded variable

PATCH Applied Dan Carpenter 2 participants 2 messages Mar 24, 2010

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rds: cleanup: remove unneeded variable

We never use "sk" so this patch removes it.

net/rds/af_rds.c +0 -2
index 853c52b..9abc825 100644
@@ -446,7 +446,6 @@ static void rds_sock_inc_info(struct socket *sock, unsigned int len,
 			      struct rds_info_lengths *lens)
 {
 	struct rds_sock *rs;
-	struct sock *sk;
 	struct rds_incoming *inc;
 	unsigned long flags;
 	unsigned int total = 0;
@@ -456,7 +455,6 @@ static void rds_sock_inc_info(struct socket *sock, unsigned int len,
 	spin_lock_irqsave(&rds_sock_lock, flags);
 
 	list_for_each_entry(rs, &rds_sock_list, rs_item) {
-		sk = rds_rs_to_sk(rs);
 		read_lock(&rs->rs_recv_lock);
 
 		/* XXX too lazy to maintain counts.. */