diff options
author | Jon Paul Maloy <jon.maloy@ericsson.com> | 2014-06-25 20:41:31 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-06-27 12:50:54 -0700 |
commit | e4de5fab806f74622600ab7fd6ed22b7f911a8c5 (patch) | |
tree | 8027f61c6b6df7617e03fea860b3a803aa60c0a1 /net/tipc/msg.h | |
parent | 3d09fc424406b5610964507b3eb73cebbc3b4c38 (diff) | |
download | linux-e4de5fab806f74622600ab7fd6ed22b7f911a8c5.tar.gz linux-e4de5fab806f74622600ab7fd6ed22b7f911a8c5.tar.bz2 linux-e4de5fab806f74622600ab7fd6ed22b7f911a8c5.zip |
tipc: use negative error return values in functions
In some places, TIPC functions returns positive integers as return
codes. This goes against standard Linux coding practice, and may
even cause problems in some cases.
We now change the return values of the functions filter_rcv()
and filter_connect() to become signed integers, and return
negative error codes when needed. The codes we use in these
particular cases are still TIPC specific, since they are both
part of the TIPC API and have no correspondence in errno.h
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Reviewed-by: Erik Hugne <erik.hugne@ericsson.com>
Reviewed-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/msg.h')
0 files changed, 0 insertions, 0 deletions