提交 18062ca9 编写于 作者: D Dan Carpenter 提交者: David S. Miller

rds: cleanup: remove unneeded variable

We never use "sk" so this patch removes it.
Signed-off-by: NDan Carpenter <error27@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 a424077a
...@@ -451,7 +451,6 @@ static void rds_sock_inc_info(struct socket *sock, unsigned int len, ...@@ -451,7 +451,6 @@ static void rds_sock_inc_info(struct socket *sock, unsigned int len,
struct rds_info_lengths *lens) struct rds_info_lengths *lens)
{ {
struct rds_sock *rs; struct rds_sock *rs;
struct sock *sk;
struct rds_incoming *inc; struct rds_incoming *inc;
unsigned long flags; unsigned long flags;
unsigned int total = 0; unsigned int total = 0;
...@@ -461,7 +460,6 @@ static void rds_sock_inc_info(struct socket *sock, unsigned int len, ...@@ -461,7 +460,6 @@ static void rds_sock_inc_info(struct socket *sock, unsigned int len,
spin_lock_irqsave(&rds_sock_lock, flags); spin_lock_irqsave(&rds_sock_lock, flags);
list_for_each_entry(rs, &rds_sock_list, rs_item) { list_for_each_entry(rs, &rds_sock_list, rs_item) {
sk = rds_rs_to_sk(rs);
read_lock(&rs->rs_recv_lock); read_lock(&rs->rs_recv_lock);
/* XXX too lazy to maintain counts.. */ /* XXX too lazy to maintain counts.. */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册