Skip to content

Commit

Permalink
rds: cleanup: remove unneeded variable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Carpenter authored and David S. Miller committed Mar 24, 2010
1 parent a424077 commit 18062ca
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions net/rds/af_rds.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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.. */
Expand Down

0 comments on commit 18062ca

Please sign in to comment.