summaryrefslogtreecommitdiffstats
path: root/net/tipc/discover.c
diff options
context:
space:
mode:
authorAllan Stephens <allan.stephens@windriver.com>2011-11-04 13:24:29 -0400
committerPaul Gortmaker <paul.gortmaker@windriver.com>2012-02-24 17:05:16 -0500
commit5f6d9123f1c7ef7297b0da1620988fe16c738e75 (patch)
treef26998d63d8263bdd67a52d54a6f58e0332e0fba /net/tipc/discover.c
parenta635b46bd884efc1fc98819cb5a200da255d575c (diff)
tipc: Eliminate trivial buffer manipulation helper routines
Gets rid of two inlined routines that simply call existing sk_buff manipulation routines, since there is no longer any extra processing done by the helper routines. Note that these changes are essentially cosmetic in nature, and have no impact on the actual operation of TIPC. Signed-off-by: Allan Stephens <allan.stephens@windriver.com> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'net/tipc/discover.c')
-rw-r--r--net/tipc/discover.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/tipc/discover.c b/net/tipc/discover.c
index f5f9bf7a0436..c630a21b2bed 100644
--- a/net/tipc/discover.c
+++ b/net/tipc/discover.c
@@ -135,7 +135,7 @@ void tipc_disc_recv_msg(struct sk_buff *buf, struct tipc_bearer *b_ptr)
135 135
136 media_addr.broadcast = 1; 136 media_addr.broadcast = 1;
137 b_ptr->media->msg2addr(&media_addr, msg_media_addr(msg)); 137 b_ptr->media->msg2addr(&media_addr, msg_media_addr(msg));
138 buf_discard(buf); 138 kfree_skb(buf);
139 139
140 /* Ensure message from node is valid and communication is permitted */ 140 /* Ensure message from node is valid and communication is permitted */
141 if (net_id != tipc_net_id) 141 if (net_id != tipc_net_id)
@@ -250,7 +250,7 @@ void tipc_disc_recv_msg(struct sk_buff *buf, struct tipc_bearer *b_ptr)
250 rbuf = tipc_disc_init_msg(DSC_RESP_MSG, orig, b_ptr); 250 rbuf = tipc_disc_init_msg(DSC_RESP_MSG, orig, b_ptr);
251 if (rbuf) { 251 if (rbuf) {
252 b_ptr->media->send_msg(rbuf, b_ptr, &media_addr); 252 b_ptr->media->send_msg(rbuf, b_ptr, &media_addr);
253 buf_discard(rbuf); 253 kfree_skb(rbuf);
254 } 254 }
255 } 255 }
256 256
@@ -396,7 +396,7 @@ void tipc_disc_delete(struct tipc_link_req *req)
396{ 396{
397 k_cancel_timer(&req->timer); 397 k_cancel_timer(&req->timer);
398 k_term_timer(&req->timer); 398 k_term_timer(&req->timer);
399 buf_discard(req->buf); 399 kfree_skb(req->buf);
400 kfree(req); 400 kfree(req);
401} 401}
402 402