Skip to content

Commit 18062ca

Browse files
error27davem330
authored andcommitted
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>
1 parent a424077 commit 18062ca

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎net/rds/af_rds.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,6 @@ static void rds_sock_inc_info(struct socket *sock, unsigned int len,
451451
struct rds_info_lengths *lens)
452452
{
453453
struct rds_sock *rs;
454-
struct sock *sk;
455454
struct rds_incoming *inc;
456455
unsigned long flags;
457456
unsigned int total = 0;
@@ -461,7 +460,6 @@ static void rds_sock_inc_info(struct socket *sock, unsigned int len,
461460
spin_lock_irqsave(&rds_sock_lock, flags);
462461

463462
list_for_each_entry(rs, &rds_sock_list, rs_item) {
464-
sk = rds_rs_to_sk(rs);
465463
read_lock(&rs->rs_recv_lock);
466464

467465
/* XXX too lazy to maintain counts.. */

0 commit comments

Comments
 (0)