summaryrefslogtreecommitdiffstats
path: root/net/rds/af_rds.c
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2010-03-24 01:57:30 +0000
committerDavid S. Miller <davem@davemloft.net>2010-03-24 13:34:09 -0700
commit18062ca94714a66e75da8a22e010d0e8e61ab4cd (patch)
treee74e07799093a7331ffb68c1116ecadf4affd39a /net/rds/af_rds.c
parenta424077a0a48d5b2e1bdbb8cc56fd43abfd7fd6c (diff)
downloadlinux-18062ca94714a66e75da8a22e010d0e8e61ab4cd.tar.gz
linux-18062ca94714a66e75da8a22e010d0e8e61ab4cd.tar.bz2
linux-18062ca94714a66e75da8a22e010d0e8e61ab4cd.zip
rds: cleanup: remove unneeded variable
We never use "sk" so this patch removes it. Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rds/af_rds.c')
-rw-r--r--net/rds/af_rds.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/rds/af_rds.c b/net/rds/af_rds.c
index 937ecda4abe7..c2e45e8efa20 100644
--- a/net/rds/af_rds.c
+++ b/net/rds/af_rds.c
@@ -451,7 +451,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;
@@ -461,7 +460,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.. */