linux/net/tipc
Paul Gortmaker 25860c3bd5 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>
2011-01-01 13:57:55 -08:00
..
addr.c tipc: remove redundant #includes 2011-01-01 13:57:54 -08:00
addr.h tipc: Remove prototype code for supporting inter-cluster routing 2011-01-01 13:57:48 -08:00
bcast.c tipc: remove redundant #includes 2011-01-01 13:57:54 -08:00
bcast.h tipc: Remove prototype code for supporting multiple clusters 2011-01-01 13:57:49 -08:00
bearer.c tipc: remove redundant #includes 2011-01-01 13:57:54 -08:00
bearer.h tipc: Delete useless function prototypes 2010-12-02 13:34:03 -08:00
config.c tipc: remove redundant #includes 2011-01-01 13:57:54 -08:00
config.h tipc: Remove obsolete inclusions of header files 2010-12-02 13:34:02 -08:00
core.c tipc: remove redundant #includes 2011-01-01 13:57:54 -08:00
core.h tipc: Finish streamlining of debugging code 2011-01-01 13:57:54 -08:00
discover.c tipc: remove redundant #includes 2011-01-01 13:57:54 -08:00
discover.h tipc: Remove obsolete inclusions of header files 2010-12-02 13:34:02 -08:00
eth_media.c tipc: remove redundant #includes 2011-01-01 13:57:54 -08:00
handler.c
Kconfig tipc: Finish streamlining of debugging code 2011-01-01 13:57:54 -08:00
link.c tipc: Prune down link-specific debugging code 2011-01-01 13:57:53 -08:00
link.h tipc: Prune down link-specific debugging code 2011-01-01 13:57:53 -08:00
log.c tipc: Finish streamlining of debugging code 2011-01-01 13:57:54 -08:00
log.h tipc: rename dbg.[ch] to log.[ch] 2011-01-01 13:57:51 -08:00
Makefile tipc: rename dbg.[ch] to log.[ch] 2011-01-01 13:57:51 -08:00
msg.c tipc: remove redundant #includes 2011-01-01 13:57:54 -08:00
msg.h tipc: Remove prototype code for supporting inter-cluster routing 2011-01-01 13:57:48 -08:00
name_distr.c tipc: remove pointless check for NULL prior to kfree 2011-01-01 13:57:55 -08:00
name_distr.h
name_table.c tipc: remove calls to dbg() and msg_dbg() 2011-01-01 13:57:52 -08:00
name_table.h tipc: Don't use structure names which easily globally conflict. 2008-09-02 23:38:32 -07:00
net.c tipc: remove redundant #includes 2011-01-01 13:57:54 -08:00
net.h tipc: Remove prototype code for supporting multiple clusters 2011-01-01 13:57:49 -08:00
netlink.c genetlink: make netns aware 2009-07-12 14:03:27 -07:00
node.c tipc: remove redundant #includes 2011-01-01 13:57:54 -08:00
node.h tipc: Remove prototype code for supporting multiple clusters 2011-01-01 13:57:49 -08:00
node_subscr.c tipc: Remove obsolete inclusions of header files 2010-12-02 13:34:02 -08:00
node_subscr.h tipc: Don't use structure names which easily globally conflict. 2008-09-02 23:38:32 -07:00
port.c tipc: remove pointless check for NULL prior to kfree 2011-01-01 13:57:55 -08:00
port.h tipc: remove calls to dbg() and msg_dbg() 2011-01-01 13:57:52 -08:00
ref.c tipc: cleanup function namespace 2010-10-16 11:13:24 -07:00
ref.h tipc: cleanup function namespace 2010-10-16 11:13:24 -07:00
socket.c tipc: recode getsockopt error handling for better readability 2011-01-01 13:57:55 -08:00
subscr.c tipc: remove calls to dbg() and msg_dbg() 2011-01-01 13:57:52 -08:00
subscr.h Revert d88dca79d3 2010-10-21 04:11:08 -07:00