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)
commit3af390e2c5fd8a8cab6d123c18fcd3e1a65b43c6
tree44d308df8a93a55387f7df8112ba36e1e3a29e6f
parent99470819b1a89f77c1eb44f6b3328c1aeb2c87d0
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