tipc: Eliminate improper use of TIPC_OK error code
This patch corrects many places where TIPC routines indicated successful completion by returning TIPC_OK instead of 0. (The TIPC_OK symbol has the value 0, but it should only be used in contexts that deal with the error code field of a TIPC message header.) Signed-off-by: Allan Stephens <allan.stephens@windriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
2da59918e2
commit
0e35fd5e52
@@ -123,7 +123,7 @@ int tipc_ref_table_init(u32 requested_size, u32 start)
|
||||
tipc_ref_table.index_mask = actual_size - 1;
|
||||
tipc_ref_table.start_mask = start & ~tipc_ref_table.index_mask;
|
||||
|
||||
return TIPC_OK;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user