tipc: split variable assignments out of conditional expressions
authorAllan Stephens <Allan.Stephens@windriver.com>
Fri, 31 Dec 2010 18:59:33 +0000 (18:59 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 1 Jan 2011 21:57:56 +0000 (13:57 -0800)
commit2db9983a4318818845193bd577879c0620705e82
treea77ed030edde71edb1c1b781f580cdfd642ac70d
parent0e65967e33be61e5f67727edd4ea829b47676fc0
tipc: split variable assignments out of conditional expressions

Cleans up TIPC's source code to eliminate assigning values to variables
within conditional expressions, improving code readability and reducing
warnings from various code checker tools.

These changes are purely cosmetic and do not alter the operation of TIPC
in any way.

Signed-off-by: Allan Stephens <Allan.Stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/bearer.c
net/tipc/core.c
net/tipc/link.c
net/tipc/socket.c