]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: remove two indentation levels in tipc_recv_msg routine
authorYing Xue <ying.xue@windriver.com>
Wed, 30 Oct 2013 03:26:57 +0000 (11:26 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Oct 2013 20:54:54 +0000 (16:54 -0400)
commit421ae4008dadcc6d64d6afb47fccde592e029b70
tree44d308df8a93a55387f7df8112ba36e1e3a29e6f
parent9a529a153f491d6544e5965ac1dcbc90b2e14877
tipc: remove two indentation levels in tipc_recv_msg routine

The message dispatching part of tipc_recv_msg() is wrapped layers of
while/if/if/switch, causing out-of-control indentation and does not
look very good. We reduce two indentation levels by separating the
message dispatching from the blocks that checks link state and
sequence numbers, allowing longer function and arg names to be
consistently indented without wrapping. Additionally we also rename
"cont" label to "discard" and add one new label called "unlock_discard"
to make code clearer. In all, these are cosmetic changes that do not
alter the operation of TIPC in any way.

Signed-off-by: Ying Xue <ying.xue@windriver.com>
Reviewed-by: Erik Hugne <erik.hugne@ericsson.com>
Cc: David Laight <david.laight@aculab.com>
Cc: Andreas Bofjäll <andreas.bofjall@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/link.c