Commit 504f284a authored by David S. Miller's avatar David S. Miller

rxrpc: Kill set but unused variable 'sp' in rxrpc_rotate_tx_window()

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f06cd54f
...@@ -375,7 +375,6 @@ static int rxrpc_process_soft_ACKs(struct rxrpc_call *call, ...@@ -375,7 +375,6 @@ static int rxrpc_process_soft_ACKs(struct rxrpc_call *call,
*/ */
static void rxrpc_rotate_tx_window(struct rxrpc_call *call, u32 hard) static void rxrpc_rotate_tx_window(struct rxrpc_call *call, u32 hard)
{ {
struct rxrpc_skb_priv *sp;
unsigned long _skb; unsigned long _skb;
int tail = call->acks_tail, old_tail; int tail = call->acks_tail, old_tail;
int win = CIRC_CNT(call->acks_head, tail, call->acks_winsz); int win = CIRC_CNT(call->acks_head, tail, call->acks_winsz);
...@@ -387,7 +386,6 @@ static void rxrpc_rotate_tx_window(struct rxrpc_call *call, u32 hard) ...@@ -387,7 +386,6 @@ static void rxrpc_rotate_tx_window(struct rxrpc_call *call, u32 hard)
while (call->acks_hard < hard) { while (call->acks_hard < hard) {
smp_read_barrier_depends(); smp_read_barrier_depends();
_skb = call->acks_window[tail] & ~1; _skb = call->acks_window[tail] & ~1;
sp = rxrpc_skb((struct sk_buff *) _skb);
rxrpc_free_skb((struct sk_buff *) _skb); rxrpc_free_skb((struct sk_buff *) _skb);
old_tail = tail; old_tail = tail;
tail = (tail + 1) & (call->acks_winsz - 1); tail = (tail + 1) & (call->acks_winsz - 1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment