rxrpc: Create a null security type and get rid of conditional calls
Create a null security type for security index 0 and get rid of all conditional calls to the security operations. We expect normally to be using security, so this should be of little negative impact. Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
648af7fca1
commit
e0e4d82f3b
@@ -193,7 +193,7 @@ static int rxrpc_fast_process_data(struct rxrpc_call *call,
|
||||
|
||||
/* if the packet need security things doing to it, then it goes down
|
||||
* the slow path */
|
||||
if (call->conn->security)
|
||||
if (call->conn->security_ix)
|
||||
goto enqueue_packet;
|
||||
|
||||
sp->call = call;
|
||||
|
Reference in New Issue
Block a user