tipc: compress out gratuitous extra carriage returns
Some of the comment blocks are floating in limbo between two functions, or between blocks of code. Delete the extra line feeds between any comment and its associated following block of code, to be consistent with the majority of the rest of the kernel. Also delete trailing newlines at EOF and fix a couple trivial typos in existing comments. This is a 100% cosmetic change with no runtime impact. We get rid of over 500 lines of non-code, and being blank line deletes, they won't even show up as noise in git blame. Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
This commit is contained in:
parent
aad585473f
commit
617d3c7a50
32 changed files with 16 additions and 530 deletions
|
@ -131,7 +131,6 @@ static struct sk_buff *tipc_show_stats(void)
|
|||
tipc_printf(&pb, "TIPC version " TIPC_MOD_VER "\n");
|
||||
|
||||
/* Use additional tipc_printf()'s to return more info ... */
|
||||
|
||||
str_len = tipc_printbuf_validate(&pb);
|
||||
skb_put(buf, TLV_SPACE(str_len));
|
||||
TLV_SET(rep_tlv, TIPC_TLV_ULTRA_STRING, NULL, str_len);
|
||||
|
@ -191,7 +190,6 @@ static struct sk_buff *cfg_set_own_addr(void)
|
|||
* configuration commands can't be received until a local configuration
|
||||
* command to enable the first bearer is received and processed.
|
||||
*/
|
||||
|
||||
spin_unlock_bh(&config_lock);
|
||||
tipc_core_start_net(addr);
|
||||
spin_lock_bh(&config_lock);
|
||||
|
@ -283,13 +281,11 @@ struct sk_buff *tipc_cfg_do_cmd(u32 orig_node, u16 cmd, const void *request_area
|
|||
spin_lock_bh(&config_lock);
|
||||
|
||||
/* Save request and reply details in a well-known location */
|
||||
|
||||
req_tlv_area = request_area;
|
||||
req_tlv_space = request_space;
|
||||
rep_headroom = reply_headroom;
|
||||
|
||||
/* Check command authorization */
|
||||
|
||||
if (likely(in_own_node(orig_node))) {
|
||||
/* command is permitted */
|
||||
} else if (cmd >= 0x8000) {
|
||||
|
@ -310,7 +306,6 @@ struct sk_buff *tipc_cfg_do_cmd(u32 orig_node, u16 cmd, const void *request_area
|
|||
}
|
||||
|
||||
/* Call appropriate processing routine */
|
||||
|
||||
switch (cmd) {
|
||||
case TIPC_CMD_NOOP:
|
||||
rep_tlv_buf = tipc_cfg_reply_none();
|
||||
|
@ -433,7 +428,6 @@ static void cfg_named_msg_event(void *userdata,
|
|||
struct sk_buff *rep_buf;
|
||||
|
||||
/* Validate configuration message header (ignore invalid message) */
|
||||
|
||||
req_hdr = (struct tipc_cfg_msg_hdr *)msg;
|
||||
if ((size < sizeof(*req_hdr)) ||
|
||||
(size != TCM_ALIGN(ntohl(req_hdr->tcm_len))) ||
|
||||
|
@ -443,7 +437,6 @@ static void cfg_named_msg_event(void *userdata,
|
|||
}
|
||||
|
||||
/* Generate reply for request (if can't, return request) */
|
||||
|
||||
rep_buf = tipc_cfg_do_cmd(orig->node,
|
||||
ntohs(req_hdr->tcm_type),
|
||||
msg + sizeof(*req_hdr),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue