]> 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)
commit1108d99aa25d5bc775aa18f1e470194ae8c707f0
tree44d308df8a93a55387f7df8112ba36e1e3a29e6f
parentdee9e1a970ab459a470679a5756ef4fc4cac0e37
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