Thread (3 messages) flat view 3 messages, 2 authors, 2018-08-01

Re: [PATCH net-next] rxrpc: remove redundant variables 'xcall','sp' and 'did_discard'

From: YueHaibing <hidden>
Date: 2018-08-01 09:19:20
Also in: lkml

On 2018/8/1 16:28, David Howells wrote:
YueHaibing [off-list ref] wrote:
quoted
 		while (*pp) {
 			parent = *pp;
-			xcall = rb_entry(parent, struct rxrpc_call, sock_node);
 			if (user_call_ID < call->user_call_ID)
 				pp = &(*pp)->rb_left;
 			else if (user_call_ID > call->user_call_ID)
No, this is an actual bug.  The if-conditions should be using xcall-> not
call->.
yes, I will post a new patch, thanks.
quoted
-		sp = rxrpc_skb(skb);
Yeah, that's fine.
quoted
-	did_discard = true;
Hmmm...  It looks like I intended something with this, but I don't remember
what now.  I think it can be removed.

David

.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help