diff options
Diffstat (limited to 'net/tipc/config.c')
-rw-r--r-- | net/tipc/config.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/tipc/config.c b/net/tipc/config.c index afa6e853c04b..a7894ff77ae9 100644 --- a/net/tipc/config.c +++ b/net/tipc/config.c | |||
@@ -65,10 +65,8 @@ int tipc_cfg_append_tlv(struct sk_buff *buf, int tlv_type, | |||
65 | struct tlv_desc *tlv = (struct tlv_desc *)skb_tail_pointer(buf); | 65 | struct tlv_desc *tlv = (struct tlv_desc *)skb_tail_pointer(buf); |
66 | int new_tlv_space = TLV_SPACE(tlv_data_size); | 66 | int new_tlv_space = TLV_SPACE(tlv_data_size); |
67 | 67 | ||
68 | if (skb_tailroom(buf) < new_tlv_space) { | 68 | if (skb_tailroom(buf) < new_tlv_space) |
69 | dbg("tipc_cfg_append_tlv unable to append TLV\n"); | ||
70 | return 0; | 69 | return 0; |
71 | } | ||
72 | skb_put(buf, new_tlv_space); | 70 | skb_put(buf, new_tlv_space); |
73 | tlv->tlv_type = htons(tlv_type); | 71 | tlv->tlv_type = htons(tlv_type); |
74 | tlv->tlv_len = htons(TLV_LENGTH(tlv_data_size)); | 72 | tlv->tlv_len = htons(TLV_LENGTH(tlv_data_size)); |