tipc: recode getsockopt error handling for better readability
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 31 Dec 2010 18:59:31 +0000 (18:59 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 1 Jan 2011 21:57:55 +0000 (13:57 -0800)
commit25860c3bd5bd1db236d4fd5826d76127d677dc28
tree68ad705820b95452a49574e056c89d61cd1b69e5
parente83504f72456809cdbdbc91700d3ba6370c9da1c
tipc: recode getsockopt error handling for better readability

The existing code for the copy to user and error handling at the
end of getsockopt isn't easy to follow, due to the excessive use
of if/else.  By simply using return where appropriate, it can be
made smaller and easier to follow at the same time.

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