tipc: remove active flag from tipc_bearer structure
After the allocation of tipc_bearer structure instance is converted from statical way to dynamical way, we identify whether a certain tipc_bearer structure pointer is valid by checking whether the pointer is NULL or not. So the active flag in tipc_bearer structure becomes redundant. Signed-off-by: Ying Xue <ying.xue@windriver.com> Reviewed-by: Erik Hugne <erik.hugne@ericsson.com> Reviewed-by: Jon Maloy <jon.maloy@ericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
3874ccbba8
commit
f47de12b06
@@ -1458,10 +1458,6 @@ void tipc_rcv(struct sk_buff *head, struct tipc_bearer *b_ptr)
|
||||
head = head->next;
|
||||
buf->next = NULL;
|
||||
|
||||
/* Ensure bearer is still enabled */
|
||||
if (unlikely(!b_ptr->active))
|
||||
goto discard;
|
||||
|
||||
/* Ensure message is well-formed */
|
||||
if (unlikely(!link_recv_buf_validate(buf)))
|
||||
goto discard;
|
||||
|
Reference in New Issue
Block a user